diff options
author | Robert C. Helling <helling@atdotde.de> | 2020-03-12 16:23:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-12 11:48:27 -0700 |
commit | 0acfa28d873ded8b87a5b64cc8e13aca5c6b34a3 (patch) | |
tree | ea0e2154381bc884af9fefc14dc0a5322ff4fa65 /desktop-widgets/mainwindow.cpp | |
parent | 7387b10b2944c0126999a3911d6ecf705d243a8b (diff) | |
download | subsurface-0acfa28d873ded8b87a5b64cc8e13aca5c6b34a3.tar.gz |
Make statistics window resizable on Mac
For some reason, the window needs an active maximize
button to be resizable on Mac.
Fixes #2671
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index d995c7a36..b55002285 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -1002,9 +1002,10 @@ void MainWindow::on_actionYearlyStatistics_triggered() QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), &d); connect(quit, SIGNAL(activated()), this, SLOT(close())); d.setWindowFlags(Qt::Window | Qt::CustomizeWindowHint - | Qt::WindowCloseButtonHint | Qt::WindowTitleHint); + | Qt::WindowCloseButtonHint | Qt::WindowTitleHint | Qt::WindowMaximizeButtonHint); d.setWindowTitle(tr("Yearly statistics")); d.setWindowIcon(QIcon(":subsurface-icon")); + d.setSizeGripEnabled(true); d.exec(); } |