summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-11-26 14:06:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-27 14:16:53 +0100
commitc0895163f9cdd507d6727ee7335e262601b769cd (patch)
tree438482f7c9353543f06b8670d55e59d43b1bd354
parentf665204c032795257a340573db91686dfc27e028 (diff)
downloadqtxmlpatterns-c0895163f9cdd507d6727ee7335e262601b769cd.tar.gz
Always get the default flags from QAIM.
Change-Id: I89abe8fdbd836804624a669296ae673230149472 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
-rw-r--r--tests/auto/xmlpatternssdk/TreeModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/xmlpatternssdk/TreeModel.cpp b/tests/auto/xmlpatternssdk/TreeModel.cpp
index e80e316..c3d7303 100644
--- a/tests/auto/xmlpatternssdk/TreeModel.cpp
+++ b/tests/auto/xmlpatternssdk/TreeModel.cpp
@@ -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