Always get the default flags from QAIM.
authorStephen Kelly <stephen.kelly@kdab.com>
Mon, 26 Nov 2012 13:06:00 +0000 (14:06 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 27 Nov 2012 13:16:53 +0000 (14:16 +0100)
Change-Id: I89abe8fdbd836804624a669296ae673230149472
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
tests/auto/xmlpatternssdk/TreeModel.cpp

index e80e316..c3d7303 100644 (file)
@@ -134,7 +134,7 @@ Qt::ItemFlags TreeModel::flags(const QModelIndex &idx) const
     if(!idx.isValid())
         return Qt::ItemFlags();
 
-    return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
+    return QAbstractItemModel::flags(idx);
 }
 
 int TreeModel::rowCount(const QModelIndex &p) const