mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7387b10b29
commit
0acfa28d87
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue