diff options
Diffstat (limited to 'examples/widgets/image-gallery-cpp/imagemodel.cpp')
-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; } |