diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-07-14 02:24:38 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-07-14 02:32:08 (GMT) |
commit | a675b9ef9f85fa4a2fa245cd164d1e330b703bd9 (patch) | |
tree | 82fcb858776f6134e2d8e783df8f49f88de5d55d /src/declarative/qml/qdeclarativebinding_p_p.h | |
parent | 400b0d43830dfdcefb2f8bd91440ab6f4130ce0f (diff) | |
download | Qt-a675b9ef9f85fa4a2fa245cd164d1e330b703bd9.zip Qt-a675b9ef9f85fa4a2fa245cd164d1e330b703bd9.tar.gz Qt-a675b9ef9f85fa4a2fa245cd164d1e330b703bd9.tar.bz2 |
Split responsibilities in QDeclarativeExpression more cleanly
Diffstat (limited to 'src/declarative/qml/qdeclarativebinding_p_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativebinding_p_p.h | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/src/declarative/qml/qdeclarativebinding_p_p.h b/src/declarative/qml/qdeclarativebinding_p_p.h index 617ec4b..6926158 100644 --- a/src/declarative/qml/qdeclarativebinding_p_p.h +++ b/src/declarative/qml/qdeclarativebinding_p_p.h @@ -60,30 +60,24 @@ QT_BEGIN_NAMESPACE -class QDeclarativeBindingData : public QDeclarativeExpressionData -{ -public: - QDeclarativeBindingData(); - virtual ~QDeclarativeBindingData(); - - bool updating:1; - bool enabled:1; - - QDeclarativeProperty property; - - virtual void refresh(); -}; - class QDeclarativeBindingPrivate : public QDeclarativeExpressionPrivate { Q_DECLARE_PUBLIC(QDeclarativeBinding) public: QDeclarativeBindingPrivate(); - - QDeclarativeBindingData *bindingData() { return static_cast<QDeclarativeBindingData *>(data); } - const QDeclarativeBindingData *bindingData() const { return static_cast<const QDeclarativeBindingData *>(data); } + ~QDeclarativeBindingPrivate(); virtual void emitValueChanged(); + +protected: + virtual void refresh(); + +private: + bool updating:1; + bool enabled:1; + QDeclarativeProperty property; + + bool *deleted; }; QT_END_NAMESPACE |