aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlincubator_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-04-02 13:20:04 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-24 02:41:06 +0200
commitd8d047b75172dc4cf3abd38152d5181ef83975b8 (patch)
treef808f3986529f4637ee1025708844d13ddc466b2 /src/qml/qml/qqmlincubator_p.h
parentafbde67c01baad017cf7ed385a6415e137269e9e (diff)
Contruct per-delegate QQmlContextData directly.
The QQmlContext object created per item is a weighty (QObject) wrapper around QQmlContextData that isn't utilized except as an intermeditrary for the QQmlComponent API. By duplicating a little code out of QQmlComponent we can avoid the need to ever contruct the wrapper. Change-Id: I74558c7e746ead2c5127a8754d5f04550b8f4d10 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlincubator_p.h')
-rw-r--r--src/qml/qml/qqmlincubator_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlincubator_p.h b/src/qml/qml/qqmlincubator_p.h
index f5effe3005..f5fc0b9d33 100644
--- a/src/qml/qml/qqmlincubator_p.h
+++ b/src/qml/qml/qqmlincubator_p.h
@@ -69,6 +69,8 @@ public:
QQmlIncubatorPrivate(QQmlIncubator *q, QQmlIncubator::IncubationMode m);
~QQmlIncubatorPrivate();
+ inline static QQmlIncubatorPrivate *get(QQmlIncubator *incubator) { return incubator->d; }
+
QQmlIncubator *q;
QQmlIncubator::Status calculateStatus() const;