summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation_p.h
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2018-12-05 11:56:09 +0100
committerChristian Stromme <christian.stromme@qt.io>2018-12-05 14:54:19 +0000
commitc0c4f8f4dfc39ca76b314ee19ff22a1166379daa (patch)
tree0d6519e7c3214f5a2fb7abd33841856e0086b3e4 /src/runtime/q3dsuippresentation_p.h
parent10c49ffb01f5b49440dc53c402ae11fb386e9611 (diff)
Add util functions to get property data
This is a faster and cleaner way to write/read both static and dynamic properties. Change-Id: I0ee3b8eda86080b79bce42d67cb26a7fe04f60a0 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsuippresentation_p.h')
-rw-r--r--src/runtime/q3dsuippresentation_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/q3dsuippresentation_p.h b/src/runtime/q3dsuippresentation_p.h
index e0de77b..2e7dd5c 100644
--- a/src/runtime/q3dsuippresentation_p.h
+++ b/src/runtime/q3dsuippresentation_p.h
@@ -378,6 +378,10 @@ public:
QVector<QByteArray> dynamicPropertyNames() const;
QVector<QVariant> dynamicPropertyValues() const;
+ static int indexOfProperty(Q3DSGraphObject *obj, const char *name);
+ static QVariant readProperty(Q3DSGraphObject *obj, int idx);
+ static bool writeProperty(Q3DSGraphObject *obj, int idx, const QVariant &v);
+
// keep in mind that certain objects, e.g. effects, remove all dynamic
// properties upon certain conditions
void clearDynamicProperties();