diff options
author | Matthew Vogt <matthew.vogt@nokia.com> | 2012-07-17 11:14:43 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-18 05:48:43 +0200 |
commit | 884bc89e9fe765a7be245b3009339f999936a761 (patch) | |
tree | a8ecc8df740a3e93a8ab30de96f7a4e4a2e091e9 /src/qml/util/qqmlpropertymap.h | |
parent | 1ce3a17ef51e10c03627842b9cdd0bb543ee8c83 (diff) |
Allow QQmlPropertyMap property updates to be controlled
Allow clients to control updates made from QML to types derived from
QQmlPropertyMap, by overriding the updateValue() function.
Task-number: QTBUG-23183
Change-Id: I0169093779ebfe50dc9349f5aaac08ed85c80a8f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'src/qml/util/qqmlpropertymap.h')
-rw-r--r-- | src/qml/util/qqmlpropertymap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/util/qqmlpropertymap.h b/src/qml/util/qqmlpropertymap.h index 53254ab672..bfd11e5c80 100644 --- a/src/qml/util/qqmlpropertymap.h +++ b/src/qml/util/qqmlpropertymap.h @@ -79,6 +79,9 @@ public: Q_SIGNALS: void valueChanged(const QString &key, const QVariant &value); +protected: + virtual QVariant updateValue(const QString &key, const QVariant &input); + private: Q_DECLARE_PRIVATE(QQmlPropertyMap) Q_DISABLE_COPY(QQmlPropertyMap) |