diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-03-19 12:16:12 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-20 22:20:13 +0100 |
commit | fbdf76771c50294f0a1c0b450f50affc2100b30a (patch) | |
tree | 94377c6059005aed5e4f7744706524a3f3a917d7 /src/widgets/itemviews/qabstractitemdelegate.h | |
parent | 8687cf1f99b87514cc080ac7db353a1538133fe1 (diff) |
Reserve a virtual method for use with a feature in Qt 5.1.
The view will query the delegate for roles which are relevant to
the particular delegate. For unrelated roles, the delegate
will not have to repaint when the data changes.
Change-Id: If8f1ba4c2bce7dbcf70de344b984aea1deca0edd
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/widgets/itemviews/qabstractitemdelegate.h')
-rw-r--r-- | src/widgets/itemviews/qabstractitemdelegate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qabstractitemdelegate.h b/src/widgets/itemviews/qabstractitemdelegate.h index 2c51dfcac8..89aa1915f6 100644 --- a/src/widgets/itemviews/qabstractitemdelegate.h +++ b/src/widgets/itemviews/qabstractitemdelegate.h @@ -114,6 +114,8 @@ public: const QStyleOptionViewItem &option, const QModelIndex &index); + virtual QSet<int> paintingRoles() const; + Q_SIGNALS: void commitData(QWidget *editor); void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint = NoHint); |