aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvmemetaobject_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlvmemetaobject_p.h')
-rw-r--r--src/qml/qml/qqmlvmemetaobject_p.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlvmemetaobject_p.h b/src/qml/qml/qqmlvmemetaobject_p.h
index a320163f23..a87feec043 100644
--- a/src/qml/qml/qqmlvmemetaobject_p.h
+++ b/src/qml/qml/qqmlvmemetaobject_p.h
@@ -204,6 +204,26 @@ public:
inline void allocateVarPropertiesArray();
inline bool ensureVarPropertiesAllocated();
+ // temporary solution so I can experiment with storing
+ // properties in a JS array. Should be switched over to also
+ // use the 'varProperties' in the end.
+ QV4::WeakValue properties;
+ bool propertiesInitialized;
+ inline void allocatePropertiesArray();
+ inline bool ensurePropertiesAllocated();
+
+ int readPropertyAsInt(int id);
+ bool readPropertyAsBool(int id);
+ double readPropertyAsDouble(int id);
+ QString readPropertyAsString(int id);
+ QSizeF readPropertyAsSizeF(int id);
+
+ void writeProperty(int id, int v);
+ void writeProperty(int id, bool v);
+ void writeProperty(int id, double v);
+ void writeProperty(int id, const QString& v);
+ void writeProperty(int id, const QSizeF& v);
+
void ensureQObjectWrapper();
void mark(QV4::ExecutionEngine *e);