diff options
author | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-02-02 14:17:37 +0100 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@qt.io> | 2018-02-09 11:01:59 +0000 |
commit | 8c33c7022cf427b64fbd2729d38d6abdbe33a6e1 (patch) | |
tree | 6127d735687dce4b724db00f6df203ca147561a1 /src/qml/types/qqmldelegatemodel_p_p.h | |
parent | 59a9c7c3d9edeb9420bf17c5913484daaf5b1ff5 (diff) |
QQmlDMAbstractItemModelData: add support for row and column
This will give item view delegates access to which row and
column they belong to.
Change-Id: I5c008504d30695319e5b149987af750f860043dd
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/qml/types/qqmldelegatemodel_p_p.h')
-rw-r--r-- | src/qml/types/qqmldelegatemodel_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qqmldelegatemodel_p_p.h b/src/qml/types/qqmldelegatemodel_p_p.h index aa2a3fcd42..b44979986f 100644 --- a/src/qml/types/qqmldelegatemodel_p_p.h +++ b/src/qml/types/qqmldelegatemodel_p_p.h @@ -119,7 +119,7 @@ public: int groupIndex(Compositor::Group group); int modelIndex() const { return index; } - void setModelIndex(int idx) { index = idx; Q_EMIT modelIndexChanged(); } + virtual void setModelIndex(int idx) { index = idx; Q_EMIT modelIndexChanged(); } virtual QV4::ReturnedValue get() { return QV4::QObjectWrapper::wrap(v4, this); } |