ui: Use window decorations on dialog windows (issue #376)
* added SubWindow flag to QtWindow to either use window decorations or show window within main window * fixes black borders in some Linux window managers bug id = 376 fortune cookie message = Your skill will accomplish what the force of many others cannot.
This commit is contained in:
@@ -81,9 +81,8 @@ void QtRecentProjectButton::handleButtonClick()
|
||||
|
||||
|
||||
QtStartScreen::QtStartScreen(QWidget *parent)
|
||||
: QtWindow(parent)
|
||||
: QtWindow(true, parent)
|
||||
{
|
||||
this->raise();
|
||||
}
|
||||
|
||||
QSize QtStartScreen::sizeHint() const
|
||||
@@ -286,8 +285,8 @@ void QtStartScreen::setupStartScreen(bool unlocked)
|
||||
|
||||
QSize size = sizeHint();
|
||||
move(
|
||||
parentWidget()->pos().x() + parentWidget()->width() / 2 - size.width() / 2,
|
||||
parentWidget()->pos().y() + parentWidget()->height() / 2 - size.height() / 2
|
||||
parentWidget()->width() / 2 - size.width() / 2,
|
||||
parentWidget()->height() / 2 - size.height() / 2
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user