if (!fileName.empty())
{
- if (!m_imp->Load(fileName))
+ if (!Load(fileName))
{
delete m_imp;
m_imp = NULL;
}
}
+ SetBestFittingSize(size);
return true;
}
else
if (!fileName.empty())
{
- if (m_imp->Load(fileName))
+ if (Load(fileName))
+ {
+ SetBestFittingSize(size);
return true;
+ }
else
delete m_imp;
}
else
+ {
+ SetBestFittingSize(size);
return true;
+ }
classInfo = NextBackend();
}
return false;
}
- if (!m_imp->Load(location))
+ if (!Load(location))
{
delete m_imp;
m_imp = NULL;
return false;
}
+ SetBestFittingSize(size);
return true;
}
else
pos, size, style, validator, name))
continue;
- if (m_imp->Load(location))
+ if (Load(location))
+ {
+ SetBestFittingSize(size);
return true;
+ }
else
delete m_imp;