ui: adapt window size to contents if bigger than preferred size

This commit is contained in:
Eberhard Graether
2016-03-11 21:50:07 +01:00
parent f6e2821430
commit 813cde4d26
4 changed files with 15 additions and 5 deletions
@@ -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()