summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlmetaproperty.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-28 00:38:30 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-11 22:47:47 (GMT)
commitac507b4752dcd065038130d224910a6dc64f8f37 (patch)
tree629acc0c7b4afd4b474d66b27bf8b6ca161c85c0 /src/declarative/qml/qmlmetaproperty.h
parent9b7d77460c38ec93d98fa4779826b32bea2eaaff (diff)
downloadQt-ac507b4752dcd065038130d224910a6dc64f8f37.zip
Qt-ac507b4752dcd065038130d224910a6dc64f8f37.tar.gz
Qt-ac507b4752dcd065038130d224910a6dc64f8f37.tar.bz2
Improve Behavior reliability.
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.h')
-rw-r--r--src/declarative/qml/qmlmetaproperty.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.h b/src/declarative/qml/qmlmetaproperty.h
index 8c34ece..b0ae28c 100644
--- a/src/declarative/qml/qmlmetaproperty.h
+++ b/src/declarative/qml/qmlmetaproperty.h
@@ -88,8 +88,9 @@ public:
QVariant read() const;
void write(const QVariant &) const;
- enum WriteSource { Animation, Binding, Other };
- void write(const QVariant &, WriteSource) const;
+ enum WriteFlag { BypassInterceptor = 0x01, DontRemoveBinding = 0x02 };
+ Q_DECLARE_FLAGS(WriteFlags, WriteFlag)
+ void write(const QVariant &, QmlMetaProperty::WriteFlags) const;
bool hasChangedNotifier() const;
bool needsChangedNotifier() const;
@@ -126,7 +127,8 @@ public:
QMetaProperty property() const;
QmlAbstractBinding *binding() const;
- QmlAbstractBinding *setBinding(QmlAbstractBinding *) const;
+ QmlAbstractBinding *setBinding(QmlAbstractBinding *,
+ QmlMetaProperty::WriteFlags flags = QmlMetaProperty::DontRemoveBinding) const;
QmlExpression *signalExpression() const;
QmlExpression *setSignalExpression(QmlExpression *) const;
@@ -139,6 +141,7 @@ private:
QmlMetaPropertyPrivate *d;
};
typedef QList<QmlMetaProperty> QmlMetaProperties;
+ Q_DECLARE_OPERATORS_FOR_FLAGS(QmlMetaProperty::WriteFlags)
QT_END_NAMESPACE