summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krasnyk <michael.krasnyk@gmail.com>2014-02-05 23:10:54 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-07 20:46:39 +0100
commitb6f21d23a8edbd6bf661ffe75c9a8783bd3561c0 (patch)
tree7aa3223a41175cd756afab2e51f6b64c7e0d541f
parentbe48e390962413258d9c310fbf226759c1229f78 (diff)
downloadqtlocation-b6f21d23a8edbd6bf661ffe75c9a8783bd3561c0.tar.gz
Add index context property to QDeclarativeGeoMapItemBase
... for indexing alternative routes in a delegate of QDeclarativeGeoMapItemView Change-Id: If40c40bcc4e89c92c473b98fddaad163c73c08c3 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r--src/imports/location/qdeclarativegeomapitemview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/location/qdeclarativegeomapitemview.cpp b/src/imports/location/qdeclarativegeomapitemview.cpp
index 1ae8cb68..553cb5fd 100644
--- a/src/imports/location/qdeclarativegeomapitemview.cpp
+++ b/src/imports/location/qdeclarativegeomapitemview.cpp
@@ -324,6 +324,7 @@ QDeclarativeGeoMapItemBase *QDeclarativeGeoMapItemView::createItemFromItemModel(
modelMetaObject->setValue(iterator.value(), modelData);
}
itemContext->setContextProperty(QLatin1String("model"), model);
+ itemContext->setContextProperty(QLatin1String("index"), modelRow);
QObject *obj = delegate_->create(itemContext);