summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/puzzle
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-11-26 14:27:37 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-28 08:43:31 +0100
commit5a9de4c6768e413a56f0e7b6c67ea11db761cd58 (patch)
treee3ec0253adfdad29378b273e038136994e1ef0b3 /examples/widgets/itemviews/puzzle
parent5dcc36b15c479f532ffd0b5c1330e683fcf8781e (diff)
Always use QAIM to get the default flags.
Change-Id: I801f5c8023e3e3672fde28139a7f34f640e650f5 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'examples/widgets/itemviews/puzzle')
-rw-r--r--examples/widgets/itemviews/puzzle/piecesmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/itemviews/puzzle/piecesmodel.cpp b/examples/widgets/itemviews/puzzle/piecesmodel.cpp
index 29ce9c8ea5..c7ff78a049 100644
--- a/examples/widgets/itemviews/puzzle/piecesmodel.cpp
+++ b/examples/widgets/itemviews/puzzle/piecesmodel.cpp
@@ -81,7 +81,7 @@ void PiecesModel::addPiece(const QPixmap &pixmap, const QPoint &location)
Qt::ItemFlags PiecesModel::flags(const QModelIndex &index) const
{
if (index.isValid())
- return (Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);
+ return (QAbstractListModel::flags(index)|Qt::ItemIsDragEnabled);
return Qt::ItemIsDropEnabled;
}