summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontext_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-04-28 01:32:24 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-04-28 01:32:24 (GMT)
commit4927fb460e12ee8b4dada1025ad042d2b6b9b6f4 (patch)
tree512d035357c8b56859c01ca7d211b86ec986787d /src/declarative/qml/qmlcontext_p.h
parenteae3489b3f2fba9d733ca50eb89dc92a6e96e6f8 (diff)
downloadQt-4927fb460e12ee8b4dada1025ad042d2b6b9b6f4.zip
Qt-4927fb460e12ee8b4dada1025ad042d2b6b9b6f4.tar.gz
Qt-4927fb460e12ee8b4dada1025ad042d2b6b9b6f4.tar.bz2
Use QObject declarative data to store attached properties.
An element's qmlAttachedProperties() function will now only ever get called once per object.
Diffstat (limited to 'src/declarative/qml/qmlcontext_p.h')
-rw-r--r--src/declarative/qml/qmlcontext_p.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlcontext_p.h b/src/declarative/qml/qmlcontext_p.h
index aa0bf3e..3772885 100644
--- a/src/declarative/qml/qmlcontext_p.h
+++ b/src/declarative/qml/qmlcontext_p.h
@@ -44,6 +44,7 @@
#include <qmlcontext.h>
#include <private/qobject_p.h>
+#include <private/qmldeclarativedata_p.h>
#include <qhash.h>
#include <qscriptvalue.h>
@@ -82,12 +83,7 @@ public:
};
void addDefaultObject(QObject *, Priority);
- class ContextData : public QDeclarativeData
- {
- public:
- QmlContext *context;
- };
- ContextData contextData;
+ QmlSimpleDeclarativeData contextData;
};
QT_END_NAMESPACE