From a05ea5a6e8f50213559b096871905f9777059eb4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 17 Jun 2013 20:02:30 -0300 Subject: Create a view for the Statistics Model and Fix displaying the header This simply creates a view to show the model, while doing that I noticed that the model header wasn't showing, so I fixed it too. Signed-off-by: Tomaz Canabrava --- qt-ui/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 45b8df80a..ae43ff814 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include "divelistview.h" #include "starwidget.h" @@ -240,7 +241,10 @@ void MainWindow::on_actionToggleZoom_triggered() void MainWindow::on_actionYearlyStatistics_triggered() { - qDebug("actionYearlyStatistics"); + QTableView *view = new QTableView(); + QAbstractItemModel *model = new YearlyStatisticsModel(); + view->setModel(model); + view->show(); } /** -- cgit v1.2.3-70-g09d2