diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-11-28 10:28:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-29 10:34:45 +0100 |
commit | 9690909d91208d8b1c35b5e32e46375b0a38907c (patch) | |
tree | 06a8fd871edafca8821b706d846371f2a35706c2 /examples | |
parent | e5816feca50e57f538c9353881cd39bc0aba4abf (diff) | |
download | qtenginio-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.cpp | 2 |
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; } |