summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-07-31 15:43:42 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-08-02 09:48:45 +0000
commit2040e207f56ac9246240938a43c6f5c2b6d912c4 (patch)
tree13c2ea67aa954d8af0ec3cacbb04250ed94f75d0 /src/runtime/q3dsuippresentation_p.h
parenta647518c399a3c937ea6388171f68fc0d3487bf8 (diff)
Allow changing eyeball for effect and behavior via the Q_PROPERTY
Like Node does. Also add the missing property for effect, for consistency (not that these are used anywhere yet). Change-Id: I8e3e5a0e527cb4e4ea7feca52ec42fe104379c6a Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsuippresentation_p.h')
-rw-r--r--src/runtime/q3dsuippresentation_p.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/runtime/q3dsuippresentation_p.h b/src/runtime/q3dsuippresentation_p.h
index 7ad8904..ec9f5f7 100644
--- a/src/runtime/q3dsuippresentation_p.h
+++ b/src/runtime/q3dsuippresentation_p.h
@@ -1846,7 +1846,8 @@ class Q3DSV_PRIVATE_EXPORT Q3DSEffectInstance : public Q3DSGraphObject
{
Q3DS_OBJECT
Q_PROPERTY(QString class READ clazz)
- Q_PROPERTY(bool eyeball READ eyeballEnabled)
+ Q_PROPERTY(bool eyeball READ eyeballEnabled WRITE setEyeballEnabled)
+ Q_PROPERTY(const Q3DSEffect * effect READ effect)
public:
enum EffectInstancePropertyChanges {
EyeBallChanges = 1 << 0
@@ -1865,6 +1866,8 @@ public:
const Q3DSEffect *effect() const { return &m_effect; }
bool eyeballEnabled() const { return m_eyeballEnabled; }
+ Q3DSPropertyChange setEyeballEnabled(bool v);
+
const Q3DSPropertyChangeList &masterRollbackList() const { return m_masterRollbackList; }
private:
@@ -1883,7 +1886,7 @@ class Q3DSV_PRIVATE_EXPORT Q3DSBehaviorInstance : public Q3DSGraphObject
{
Q3DS_OBJECT
Q_PROPERTY(QString class READ clazz)
- Q_PROPERTY(bool eyeball READ eyeballEnabled)
+ Q_PROPERTY(bool eyeball READ eyeballEnabled WRITE setEyeballEnabled)
Q_PROPERTY(const Q3DSBehavior * behavior READ behavior)
public:
enum BehaviorInstancePropertyChanges {
@@ -1906,6 +1909,8 @@ public:
QString clazz() const { return m_behavior_unresolved; }
bool eyeballEnabled() const { return m_eyeballEnabled; }
+ Q3DSPropertyChange setEyeballEnabled(bool v);
+
private:
Q_DISABLE_COPY(Q3DSBehaviorInstance)
template<typename V> void setProps(const V &attrs, PropSetFlags flags);