summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2013-11-28 10:28:44 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-29 10:34:45 +0100
commit9690909d91208d8b1c35b5e32e46375b0a38907c (patch)
tree06a8fd871edafca8821b706d846371f2a35706c2 /examples
parente5816feca50e57f538c9353881cd39bc0aba4abf (diff)
downloadqtenginio-9690909d91208d8b1c35b5e32e46375b0a38907c.tar.gz
Make items in in the image gallery not selectable
Change-Id: I9a6442c92b48ea28440cd0a65d189cf5ccf20e02 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/widgets/image-gallery-cpp/imagemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/image-gallery-cpp/imagemodel.cpp b/examples/widgets/image-gallery-cpp/imagemodel.cpp
index e31875a..3d574ad 100644
--- a/examples/widgets/image-gallery-cpp/imagemodel.cpp
+++ b/examples/widgets/image-gallery-cpp/imagemodel.cpp
@@ -131,5 +131,5 @@ QVariant ImageModel::data(const QModelIndex &index, int role) const
Qt::ItemFlags ImageModel::flags(const QModelIndex &index) const
{
- return QAbstractListModel::flags(index) | Qt::ItemIsEnabled;
+ return QAbstractListModel::flags(index) & ~Qt::ItemIsSelectable;
}