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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user