diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index a025b6f..f89b82d 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -193,6 +193,9 @@ void MainWindow::initWindowSize() case Settings::WindowSizeBehavior::Maximized: showMaximized(); break; + case Settings::WindowSizeBehavior::Windowed: + showNormal(); + break; default: adjustWindowSizeBySceneRect(); break; diff --git a/app/settings.h b/app/settings.h index b79f770..1d92087 100644 --- a/app/settings.h +++ b/app/settings.h @@ -28,6 +28,7 @@ public: enum WindowSizeBehavior { Auto, Maximized, + Windowed, }; Q_ENUM(WindowSizeBehavior) diff --git a/app/settingsdialog.cpp b/app/settingsdialog.cpp index fb2efa6..c37ee34 100644 --- a/app/settingsdialog.cpp +++ b/app/settingsdialog.cpp @@ -86,7 +86,8 @@ SettingsDialog::SettingsDialog(QWidget *parent) static QList< QPair > _iws_options { { Settings::WindowSizeBehavior::Auto, tr("Auto size") }, - { Settings::WindowSizeBehavior::Maximized, tr("Maximized") } + { Settings::WindowSizeBehavior::Maximized, tr("Maximized") }, + { Settings::WindowSizeBehavior::Windowed, tr("Windowed") } }; static QList< QPair > _hidpi_options {