diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 06:40:59 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 08:10:29 +0200 |
commit | 5fde532408da5b6b3ddef13aff5e07f32015e7d9 (patch) | |
tree | 8a243126c37a92be3ca14734adc5074a9642c129 /examples/qmlscatter/qml/qmlscatter/main.qml | |
parent | 964897e316c0fd524cba3a3cbb3c32fad53f965a (diff) |
Visual properties moved to theme
Task-number: QTRD-2632
Change-Id: I91eaa8fa26e232de24fe89ef0c8a2fc53f31fb8c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/qmlscatter/qml/qmlscatter/main.qml')
-rw-r--r-- | examples/qmlscatter/qml/qmlscatter/main.qml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml index 92809297..7893ae56 100644 --- a/examples/qmlscatter/qml/qmlscatter/main.qml +++ b/examples/qmlscatter/qml/qmlscatter/main.qml @@ -51,9 +51,11 @@ Item { height: dataView.height //! [2] //! [3] - font.family: "Lucida Handwriting" - font.pointSize: 40 - theme: Theme3D { type: AbstractGraph3D.ThemeIsabelle } + theme: Theme3D { + type: AbstractGraph3D.ThemeIsabelle + font.family: "Lucida Handwriting" + font.pointSize: 40 + } shadowQuality: AbstractGraph3D.ShadowQualitySoftLow //! [3] //! [6] @@ -153,11 +155,11 @@ Item { text: "Hide Background" anchors.left: themeToggle.right onClicked: { - if (scatterGraph.backgroundVisible === true) { - scatterGraph.backgroundVisible = false; + if (scatterGraph.theme.backgroundEnabled === true) { + scatterGraph.theme.backgroundEnabled = false; text = "Show Background"; } else { - scatterGraph.backgroundVisible = true; + scatterGraph.theme.backgroundEnabled = true; text = "Hide Background"; } } |