summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepathview.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-30 03:28:43 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-30 03:41:08 (GMT)
commit68d3e2da7719ff0fc230e8204946b27018e42c14 (patch)
tree63bfb52ada494e3498f53600787dfd5c1f7f9130 /src/declarative/graphicsitems/qdeclarativepathview.cpp
parent8368e041e35ab2a79c79f651a56e6ee53a46549f (diff)
downloadQt-68d3e2da7719ff0fc230e8204946b27018e42c14.zip
Qt-68d3e2da7719ff0fc230e8204946b27018e42c14.tar.gz
Qt-68d3e2da7719ff0fc230e8204946b27018e42c14.tar.bz2
Fix parenting after 6f88388db4e8e202780d789e66664ff824691948.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepathview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp
index dd1edd6..3574c9f 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp
@@ -188,7 +188,7 @@ void QDeclarativePathViewPrivate::createHighlight()
QDeclarativeContext *highlightContext = new QDeclarativeContext(qmlContext(q));
QObject *nobj = highlightComponent->create(highlightContext);
if (nobj) {
- highlightContext->setParent(nobj);
+ QDeclarative_setParent_noEvent(highlightContext, nobj);
item = qobject_cast<QDeclarativeItem *>(nobj);
if (!item)
delete nobj;
@@ -199,7 +199,8 @@ void QDeclarativePathViewPrivate::createHighlight()
item = new QDeclarativeItem;
}
if (item) {
- item->setParent(q);
+ QDeclarative_setParent_noEvent(item, q);
+ item->setParentItem(q);
highlightItem = item;
changed = true;
}