summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Kelly <ske@ableton.com>2015-03-20 10:33:24 +0100
committerStephen Kelly <ske@ableton.com>2015-03-25 10:41:18 +0000
commit0809a922a0da6008fb32feaf7bd4fcd0996a6b1c (patch)
treeb4048d4a3a9810f76b25dc581f04add5999932e4 /src
parent93305f3af300880e64ed6728613fb9eb6be258df (diff)
Make QAbstractProxyModel API invokable.
With reasoning similar to commit v5.5.0-alpha1~123 (Make some QAbstractItemModel API invokable, 2015-02-25) Change-Id: If0bf3a756ab1031f906c5bf9c823aafae4c3873c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Stephen Kelly <steveire@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/itemmodels/qabstractproxymodel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/itemmodels/qabstractproxymodel.h b/src/corelib/itemmodels/qabstractproxymodel.h
index 69997bc77f..afd5a1f616 100644
--- a/src/corelib/itemmodels/qabstractproxymodel.h
+++ b/src/corelib/itemmodels/qabstractproxymodel.h
@@ -56,11 +56,11 @@ public:
virtual void setSourceModel(QAbstractItemModel *sourceModel);
QAbstractItemModel *sourceModel() const;
- virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const = 0;
- virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const = 0;
+ Q_INVOKABLE virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const = 0;
+ Q_INVOKABLE virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const = 0;
- virtual QItemSelection mapSelectionToSource(const QItemSelection &selection) const;
- virtual QItemSelection mapSelectionFromSource(const QItemSelection &selection) const;
+ Q_INVOKABLE virtual QItemSelection mapSelectionToSource(const QItemSelection &selection) const;
+ Q_INVOKABLE virtual QItemSelection mapSelectionFromSource(const QItemSelection &selection) const;
bool submit() Q_DECL_OVERRIDE;
void revert() Q_DECL_OVERRIDE;