diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-24 00:13:14 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-04-24 00:13:14 (GMT) |
commit | c0979cc534e9204edc04759b7b6bef7d6980c466 (patch) | |
tree | 7e18fef13a02b8f5a47e3e3c3c843127d4de1a76 /src/declarative | |
parent | 161cf1f17eabd87e46c2056af731174e930883dd (diff) | |
download | Qt-c0979cc534e9204edc04759b7b6bef7d6980c466.zip Qt-c0979cc534e9204edc04759b7b6bef7d6980c466.tar.gz Qt-c0979cc534e9204edc04759b7b6bef7d6980c466.tar.bz2 |
Don't access internal QMetaProperty members
We can use the new QMetaProperty::propertyIndex() method instead.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index 63f45b4..b42480d 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -39,11 +39,7 @@ ** ****************************************************************************/ -// XXX ;) -#define private public #include <QMetaProperty> -#undef private - #include <private/qmlengine_p.h> #include <private/qmlcontext_p.h> @@ -308,7 +304,7 @@ bool QmlEnginePrivate::fetchCache(QmlBasicScriptNodeCache &cache, const QString cache.object = obj; cache.type = QmlBasicScriptNodeCache::Core; - cache.core = prop.property().idx + prop.property().mobj->propertyOffset(); + cache.core = prop.property().propertyIndex(); cache.coreType = prop.propertyType(); return true; |