aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/util/qqmlpropertymap.h
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-07-17 11:14:43 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-18 05:48:43 +0200
commit884bc89e9fe765a7be245b3009339f999936a761 (patch)
treea8ecc8df740a3e93a8ab30de96f7a4e4a2e091e9 /src/qml/util/qqmlpropertymap.h
parent1ce3a17ef51e10c03627842b9cdd0bb543ee8c83 (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.h3
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)