ui: adapt window size to contents if bigger than preferred size
This commit is contained in:
@@ -66,7 +66,17 @@ void QtProjectWizzardWindow::windowReady()
|
||||
|
||||
m_content->windowReady();
|
||||
|
||||
resize(content()->preferredWindowSize());
|
||||
QSize actualSize = m_window->sizeHint() + QSize(50, 50);
|
||||
QSize preferredSize = content()->preferredWindowSize();
|
||||
|
||||
if (actualSize.height() > preferredSize.height())
|
||||
{
|
||||
resize(actualSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
resize(preferredSize);
|
||||
}
|
||||
}
|
||||
|
||||
void QtProjectWizzardWindow::handleNext()
|
||||
|
||||
Reference in New Issue
Block a user