mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 03:42:09 +02:00
Changed variable to not be magic number
This commit is contained in:
parent
e5fcc577f0
commit
3f19bbfcac
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ void MainWindow::restoreGeometry() {
|
|||
// see http://doc.qt.io/qt-5/qsettings.html#restoring-the-state-of-a-gui-application
|
||||
QRect windowGeometry = QGuiApplication::primaryScreen()->availableGeometry();
|
||||
#if defined(Q_OS_MAC)
|
||||
windowGeometry.setSize((windowGeometry.size() * 0.8f));
|
||||
const float MACOS_INITIAL_WINDOW_SCALE = 0.8f;
|
||||
windowGeometry.setSize((windowGeometry.size() * MACOS_INITIAL_WINDOW_SCALE));
|
||||
#endif
|
||||
QRect geometry = _windowGeometry.get(windowGeometry);
|
||||
#if defined(Q_OS_MAC)
|
||||
|
|
Loading…
Reference in a new issue