From 750fc529b70c84b23b84f69bcec28b573646c426 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 25 Aug 2014 15:48:26 -0300 Subject: Add the old Statistics to have a reference view while programming Added the old statistics panel at the botton of the new one to have a reference view of the statistics while programming the new one. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'qt-ui') 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(); } -- cgit v1.2.3-70-g09d2