summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-17 21:05:17 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-17 21:05:17 -0300
commit87e380c7a28b467705b470323275db3812e0fa90 (patch)
treea9f1015754e0ca2cb2c575605a430bc998b738e8 /qt-ui/mainwindow.cpp
parenta05ea5a6e8f50213559b096871905f9777059eb4 (diff)
downloadsubsurface-87e380c7a28b467705b470323275db3812e0fa90.tar.gz
Yearly stats are being displayed.
Yearly stats are being displayed. the code is similar to the GTK one, but I advise the reader that it's a bit risky ( I got an unreproducible crash but it seems to be fixed now. ). The selection behavior is *weird* and I have no idea why, but I'm very sleepy - will try to look at it again tomorrow. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index ae43ff814..ca6fa4113 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -241,7 +241,7 @@ void MainWindow::on_actionToggleZoom_triggered()
void MainWindow::on_actionYearlyStatistics_triggered()
{
- QTableView *view = new QTableView();
+ QTreeView *view = new QTreeView();
QAbstractItemModel *model = new YearlyStatisticsModel();
view->setModel(model);
view->show();