[PATCH] Use the official QItemSelectionModel::SelectionFlags

Thiago Macieira thiago at macieira.org
Fri Jun 7 22:57:45 PDT 2013


It's a typedef to the QFlags<QItemSelectionModel::SelectionFlag>.

Signed-off-by: Thiago Macieira <thiago at macieira.org>
---
 qt-ui/divelistview.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index a37b6ba..297fbf3 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();
-- 
1.7.11.7



More information about the subsurface mailing list