aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-06-07 22:57:45 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-08 07:12:08 -0700
commit1ee38b4e5ea07eee14835706672e9ea55754a6eb (patch)
treee2554fde03191653b79bf9ee3acd899c42da2c37 /qt-ui
parent7218fa3568e647a0ada318c928aa31340e2832c0 (diff)
downloadsubsurface-1ee38b4e5ea07eee14835706672e9ea55754a6eb.tar.gz
Use the official QItemSelectionModel::SelectionFlags
It's a typedef to the QFlags<QItemSelectionModel::SelectionFlag>. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-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 a37b6ba3b..297fbf321 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -51,7 +51,7 @@ void DiveListView::selectDive(struct dive *dive, bool scrollto, bool toggle)
{
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
QModelIndexList match = m->match(m->index(0,0), TreeItemDT::NR, dive->number, 1, Qt::MatchRecursive);
- QFlags<QItemSelectionModel::SelectionFlag> flags;
+ QItemSelectionModel::SelectionFlags flags;
QModelIndex idx = match.first();
QModelIndex parent = idx.parent();