From c0895163f9cdd507d6727ee7335e262601b769cd Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 26 Nov 2012 14:06:00 +0100 Subject: Always get the default flags from QAIM. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I89abe8fdbd836804624a669296ae673230149472 Reviewed-by: Jędrzej Nowacki --- tests/auto/xmlpatternssdk/TreeModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.1