From 818ae4cf720eeb5f3ac3758afba0b0d2bb5fd022 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 20 Dec 2016 16:18:50 +0100 Subject: [PATCH] Make it possible for KConcatenateRowsProxyModel to work in QML It's essentially the only methods required to start using it from QML. REVIEW: 129678 --- src/kconcatenaterowsproxymodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kconcatenaterowsproxymodel.h b/src/kconcatenaterowsproxymodel.h index 53db900..9247d08 100644 --- a/src/kconcatenaterowsproxymodel.h +++ b/src/kconcatenaterowsproxymodel.h @@ -77,7 +77,7 @@ public: * The ownership of @p sourceModel is not affected by this. * The same source model cannot be added more than once. */ - void addSourceModel(QAbstractItemModel *sourceModel); + Q_SCRIPTABLE void addSourceModel(QAbstractItemModel *sourceModel); /** * Removes the source model @p sourceModel. @@ -85,7 +85,7 @@ public: * * The ownership of @sourceModel is not affected by this. */ - void removeSourceModel(QAbstractItemModel *sourceModel); + Q_SCRIPTABLE void removeSourceModel(QAbstractItemModel *sourceModel); /** * Returns the proxy index for a given source index