aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-05-25 12:32:28 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-28 05:30:34 +0200
commitd4dad3a0b83c921ed4d746eb9694be8b008bcc1a (patch)
treef991d840d10a390d7937ae9769505bf45d1fe2c9 /src/quick/util
parent45931aac0cc9e251923453b980d6466028e908eb (diff)
Don't parent (QObject) delegate items to views.
This keeps object ownership within the context the items were created in and simplifies lifetime management as the VisualDataModel has sole license to delete objects and doesn't have to keep guards against a view and all it's children being deleted. Delegates are still reparented in the item heirarchy. Change-Id: Ife5afdfe294a5a8ca1ca3638a086f72452e4915c Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/quick/util')
-rw-r--r--src/quick/util/qquickpackage.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/quick/util/qquickpackage.cpp b/src/quick/util/qquickpackage.cpp
index 94e4fe5428..6c95989ba7 100644
--- a/src/quick/util/qquickpackage.cpp
+++ b/src/quick/util/qquickpackage.cpp
@@ -145,11 +145,6 @@ QQuickPackage::QQuickPackage(QObject *parent)
QQuickPackage::~QQuickPackage()
{
- Q_D(QQuickPackage);
- for (int ii = 0; ii < d->dataList.count(); ++ii) {
- QObject *obj = d->dataList.at(ii);
- obj->setParent(this);
- }
}
QQmlListProperty<QObject> QQuickPackage::data()