summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-19 10:59:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-19 10:59:48 -0700
commit106327af43fba3592f9d9038cc3a3f46abf32b7f (patch)
tree8bde99ecfa6017aaa92fb904fc4e45463979f546 /qt-ui/mainwindow.cpp
parent138a00bd102883551442fb42d0cb26467e82bbe0 (diff)
downloadsubsurface-106327af43fba3592f9d9038cc3a3f46abf32b7f.tar.gz
Better minimum width for yearly statistics window
The Qt default was way too small. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 26f4d864d..06e6b7734 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -245,6 +245,8 @@ void MainWindow::on_actionYearlyStatistics_triggered()
QTreeView *view = new QTreeView();
QAbstractItemModel *model = new YearlyStatisticsModel();
view->setModel(model);
+ view->setWindowModality(Qt::NonModal);
+ view->setMinimumWidth(600);
view->show();
}