From 0acfa28d873ded8b87a5b64cc8e13aca5c6b34a3 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 12 Mar 2020 16:23:57 +0100 Subject: [PATCH] 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 --- desktop-widgets/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }