ui: center windows on top of main window

* justify windows in middle of main window
* fixed window resizing
* add window displacement automatic with logo
This commit is contained in:
Eberhard Graether
2016-03-02 10:36:50 +01:00
parent f3534ac6a8
commit 4425b39ea1
7 changed files with 36 additions and 31 deletions
+7 -8
View File
@@ -26,12 +26,18 @@ void QtRecentProjectButton::handleButtonClick()
MessageLoadProject(m_projectFilePath.str(), false).dispatch();
};
QtStartScreen::QtStartScreen(QWidget *parent)
: QtWindow(parent, 68)
: QtWindow(parent)
{
this->raise();
}
QSize QtStartScreen::sizeHint() const
{
return QSize(570, 600);
}
void QtStartScreen::setupStartScreen()
{
setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath() + "startscreen/startscreen.css").c_str());
@@ -77,13 +83,6 @@ void QtStartScreen::setupStartScreen()
connect(button, SIGNAL(clicked()), this, SLOT(handleRecentButton()));
position += 40;
}
resize(570, 600);
}
QSize QtStartScreen::sizeHint() const
{
return QSize(500, 500);
}
void QtStartScreen::handleNewProjectButton()