summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-01 23:51:34 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-01 23:51:34 -0300
commit764a863082f9337156fc4bcf5c0ecc6ae3d149d6 (patch)
treed071c10611ea3c31f28e7994db67baf3650e3f7b /qt-ui/divelistview.cpp
parent0be521bb25cf6210ad47e42eb7a8eb7638c32442 (diff)
downloadsubsurface-764a863082f9337156fc4bcf5c0ecc6ae3d149d6.tar.gz
Added Support for the Trips and Dives on the DiveList model.
Now the list and dives will work in the same way that the GTK version does. The code got changed heavly because the old one was just looking at the dives and didn't worked like a tree. small adaptations on the list view and model delegates because of the changes done on this model. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index fb19a7060..45b6cf4d7 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -11,5 +11,5 @@
DiveListView::DiveListView(QWidget *parent) : QTreeView(parent)
{
setUniformRowHeights(true);
- setItemDelegateForColumn(DiveTripModel::RATING, new StarWidgetsDelegate());
+ setItemDelegateForColumn(TreeItemDT::RATING, new StarWidgetsDelegate());
}