From 6cfc1dcc2969e0e522aa5777eef97e0eadc967e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Wed, 11 Dec 2013 13:12:18 +0200 Subject: Multiseries support for theme colors and gradients, part 2 Task-number: QTRD-2611 Change-Id: I280f3b7c22a212ed46813bd28c639d255107f9f3 Reviewed-by: Miikka Heikkinen --- tests/qmldynamicdata/qml/qmldynamicdata/main.qml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'tests/qmldynamicdata') diff --git a/tests/qmldynamicdata/qml/qmldynamicdata/main.qml b/tests/qmldynamicdata/qml/qmldynamicdata/main.qml index e8e23b75..4ed3b8ae 100644 --- a/tests/qmldynamicdata/qml/qmldynamicdata/main.qml +++ b/tests/qmldynamicdata/qml/qmldynamicdata/main.qml @@ -58,6 +58,16 @@ Item { } } + ThemeColor { + id: dynamicColor + ColorAnimation on color { + from: "red" + to: "yellow" + duration: 5000 + loops: Animation.Infinite + } + } + Item { id: dataView anchors.bottom: parent.bottom @@ -68,7 +78,10 @@ Item { id: scatterGraph width: dataView.width height: dataView.height - theme: Theme3D { type: Theme3D.ThemeDigia } + theme: Theme3D { + type: Theme3D.ThemeQt + baseColors: [dynamicColor] + } shadowQuality: AbstractGraph3D.ShadowQualitySoftMedium scene.activeCamera.yRotation: 30.0 inputHandler: null @@ -185,7 +198,7 @@ Item { NewButton { id: cameraToggle width: parent.width / 3 - text: "Animate Camera" + text: "Pause Camera" anchors.left: shadowToggle.right onClicked: { -- cgit v1.2.3