diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-08-25 16:10:47 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-25 13:58:38 -0700 |
commit | 1c56c9f6261521ecb2ad65a760359e6b1ae9fd48 (patch) | |
tree | d1e0b8992a97b585136668d29707eda6dd867f32 /qt-ui/mainwindow.cpp | |
parent | 750fc529b70c84b23b84f69bcec28b573646c426 (diff) | |
download | subsurface-1c56c9f6261521ecb2ad65a760359e6b1ae9fd48.tar.gz |
Create stub methods and connects the model with the new statistics
Connects the YearlyStatistics model with the YearlyStatisticsWidget
nothing is shown right now, mostly because I need to do everything
but now it's easyer to add the things that are missing.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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(); } |