summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index d253d5e05..674aa3168 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -548,6 +548,10 @@ void MainWindow::on_actionYearlyStatistics_triggered()
YearlyStatisticsWidget *s = new YearlyStatisticsWidget();
QVBoxLayout *l = new QVBoxLayout(&d);
l->addWidget(s);
+ YearlyStatisticsModel *m = new YearlyStatisticsModel();
+ QTreeView *view = new QTreeView();
+ view->setModel(m);
+ l->addWidget(view);
d.exec();
}