From 2659c308792967322564b5088e0e21bb371e0283 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 21 Feb 2018 17:09:50 +0100 Subject: Allow setting values in value type group properties in "on" assignments Assigning to a group property inside a property value source or interceptor as part of an "on assignment" is perfectly valid. That is because while "color" is a value type property, the on assignment means we're actually setting easing.type (in the example and test) on the property value source, not the color, and that one is a QObject. The same goes for interceptors. Change-Id: I505a658977a578894d6dfb00bf5c65b41e42b12f Task-number: QTBUG-56600 Reviewed-by: Michael Brasser --- .../qqmllanguage/data/groupPropertyInPropertyValueSource.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/auto/qml/qqmllanguage/data/groupPropertyInPropertyValueSource.qml (limited to 'tests/auto/qml/qqmllanguage/data') diff --git a/tests/auto/qml/qqmllanguage/data/groupPropertyInPropertyValueSource.qml b/tests/auto/qml/qqmllanguage/data/groupPropertyInPropertyValueSource.qml new file mode 100644 index 0000000000..579086fa1c --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/groupPropertyInPropertyValueSource.qml @@ -0,0 +1,11 @@ +import QtQuick 2.0 + +Rectangle { + ColorAnimation on color { + id: animation + from: "red" + to: "darkgray" + duration: 250 + easing.type: Easing.InOutQuad + } +} -- cgit v1.2.3