diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-08-25 15:48:26 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-25 13:58:26 -0700 |
commit | 750fc529b70c84b23b84f69bcec28b573646c426 (patch) | |
tree | 14e282b252149d0cd1f9bdb81ca2a43a08ed56ac /qt-ui | |
parent | 2fe1dfe83ad2c9f55010bef5bad48c4fd4b04bea (diff) | |
download | subsurface-750fc529b70c84b23b84f69bcec28b573646c426.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
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(); } |