summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativedata_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-26 03:40:30 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-26 03:40:30 (GMT)
commitf4785aff2e80e9b16379cebfd944d7b24260ecd9 (patch)
tree23de886d0ac5d744c4c195513269ec8b0b32485c /src/declarative/qml/qdeclarativedata_p.h
parentfa8d0838dfc40ed269b30b9872cfdc2d2b16b64a (diff)
parent6ebdd5eab816f357dfc3addcf2f1e8ef0ad4a9e4 (diff)
downloadQt-f4785aff2e80e9b16379cebfd944d7b24260ecd9.zip
Qt-f4785aff2e80e9b16379cebfd944d7b24260ecd9.tar.gz
Qt-f4785aff2e80e9b16379cebfd944d7b24260ecd9.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative/qml/qdeclarativedata_p.h')
-rw-r--r--src/declarative/qml/qdeclarativedata_p.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/declarative/qml/qdeclarativedata_p.h b/src/declarative/qml/qdeclarativedata_p.h
index def4188..4767169 100644
--- a/src/declarative/qml/qdeclarativedata_p.h
+++ b/src/declarative/qml/qdeclarativedata_p.h
@@ -65,6 +65,7 @@ class QDeclarativeContext;
class QDeclarativePropertyCache;
class QDeclarativeContextData;
class QDeclarativeNotifier;
+class QDeclarativeDataExtended;
// This class is structured in such a way, that simply zero'ing it is the
// default state for elemental object allocations. This is crucial in the
// workings of the QDeclarativeInstruction::CreateSimpleObject instruction.
@@ -150,17 +151,13 @@ public:
}
}
+ bool hasExtendedData() const { return extendedData != 0; }
QDeclarativeNotifier *objectNameNotifier() const;
QHash<int, QObject *> *attachedProperties() const;
- struct ExtendedData {
- ExtendedData();
- ~ExtendedData();
-
- QHash<int, QObject *> attachedProperties;
- void *objectNameNotifier;
- };
- mutable ExtendedData *extendedData;
+private:
+ // For objectNameNotifier and attachedProperties
+ mutable QDeclarativeDataExtended *extendedData;
};
template<class T>