diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 674aa3168..c0c76a6f5 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -545,12 +545,13 @@ void MainWindow::on_actionAutoGroup_triggered() void MainWindow::on_actionYearlyStatistics_triggered() { QDialog d; - YearlyStatisticsWidget *s = new YearlyStatisticsWidget(); + YearlyStatisticsWidget *newView = new YearlyStatisticsWidget(); QVBoxLayout *l = new QVBoxLayout(&d); - l->addWidget(s); + l->addWidget(newView); YearlyStatisticsModel *m = new YearlyStatisticsModel(); QTreeView *view = new QTreeView(); view->setModel(m); + newView->setModel(m); l->addWidget(view); d.exec(); } |