aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-02-02 13:47:59 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2018-02-06 09:10:13 +0000
commit9e9131118cc12c2b77d1177407da1a353e26f466 (patch)
tree8cc805bb471308dedf8de767331eafd9b0f10b3f
parenteace041161a03a849d3896af65493b7885cecc04 (diff)
QQmlDelegateModel: mark setModelIndex as virtual
This function is marked as "override" in QQmlDMCachedModelData, which means that it needs to be "virtual" in QQmlDelegateModelItem. Change-Id: If53b85a7ebfde92d348d298a6e5595bcdb2671d4 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--src/qml/types/qqmldelegatemodel_p_p.h2
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 537937df57..cbc1ca172e 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); }