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>
This commit is contained in:
Robert C. Helling 2020-03-12 16:23:57 +01:00 committed by Dirk Hohndel
parent 7387b10b29
commit 0acfa28d87

View file

@ -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();
}