aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickbehaviors/data
diff options
context:
space:
mode:
authorMatthew Vogt <matthew.vogt@nokia.com>2012-07-13 10:44:39 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-13 08:06:06 +0200
commitd166e34bade3b7c82f610f5df209b6418df9e178 (patch)
treec8a9eca854635a25245994db852c0e452849e87d /tests/auto/quick/qquickbehaviors/data
parentcf507172d6aa281036cde02ded9493535685fd80 (diff)
Update multiple value type properties despite interceptor
When an interceptor is present on a value type, ensure that multiple properties of that value can be updated simultaneously. Task-number: QTBUG-25139 Change-Id: I3042b9883d404aed4b6507e6d2f38a76caee1196 Reviewed-by: Glenn Watson <glenn.watson@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickbehaviors/data')
-rw-r--r--tests/auto/quick/qquickbehaviors/data/multipleChangesToValueType.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickbehaviors/data/multipleChangesToValueType.qml b/tests/auto/quick/qquickbehaviors/data/multipleChangesToValueType.qml
new file mode 100644
index 0000000000..029a439607
--- /dev/null
+++ b/tests/auto/quick/qquickbehaviors/data/multipleChangesToValueType.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.0
+
+Rectangle {
+ width: 400
+ height: 400
+
+ Text {
+ id: text
+ anchors.centerIn: parent
+ font.pointSize: 24
+ Behavior on font.pointSize { NumberAnimation {} }
+ }
+
+ function updateFontProperties() {
+ text.font.italic = true
+ text.font.pointSize = 48
+ text.font.weight = Font.Bold
+ }
+}