diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-11-26 14:27:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-28 08:43:31 +0100 |
commit | 5a9de4c6768e413a56f0e7b6c67ea11db761cd58 (patch) | |
tree | e3ec0253adfdad29378b273e038136994e1ef0b3 /src/widgets/doc | |
parent | 5dcc36b15c479f532ffd0b5c1330e683fcf8781e (diff) |
Always use QAIM to get the default flags.
Change-Id: I801f5c8023e3e3672fde28139a7f34f640e650f5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/widgets/doc')
-rw-r--r-- | src/widgets/doc/snippets/common-table-model/model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/common-table-model/model.cpp b/src/widgets/doc/snippets/common-table-model/model.cpp index 7bcae20dc7..6500078aaf 100644 --- a/src/widgets/doc/snippets/common-table-model/model.cpp +++ b/src/widgets/doc/snippets/common-table-model/model.cpp @@ -134,7 +134,7 @@ Qt::ItemFlags TableModel::flags(const QModelIndex &index) const if (!index.isValid()) return Qt::ItemIsEnabled; - return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable; + return QAbstractTableModel::flags(index) | Qt::ItemIsEditable; } /*! |