aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4bindings_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/qv4bindings_p.h')
-rw-r--r--src/qml/qml/v4/qv4bindings_p.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/qml/qml/v4/qv4bindings_p.h b/src/qml/qml/v4/qv4bindings_p.h
index 04fca8529f..4053c471fa 100644
--- a/src/qml/qml/v4/qv4bindings_p.h
+++ b/src/qml/qml/v4/qv4bindings_p.h
@@ -122,11 +122,19 @@ private:
{
public:
inline Subscription();
- QV4Bindings *bindings;
- int method:31;
- // Subscriptions are not shared between bindings (anymore), so this can be a simple bool flag
- bool active:1;
+ // Index of this Subscription into the QV4Bindings::subscriptions array.
+ // This may not be used before setBindings() was called.
+ inline int method() const;
+
+ inline void setBindings(QV4Bindings *bindings);
+ inline QV4Bindings *bindings() const;
+
+ inline bool active() const;
+ inline void setActive(bool active);
+
+ // Pointer to the parent QV4Bindings. The flag is used as the 'active' value.
+ QFlagPointer<QV4Bindings> m_bindings;
};
friend void QV4BindingsSubscription_callback(QQmlNotifierEndpoint *e, void **);