diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-12-02 08:43:02 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-12-02 09:01:25 +0200 |
commit | 94235c2e633845951ce6c947965789bb3f8ee7c4 (patch) | |
tree | 60f902b9defe670736dff4bf33d13ef5bfb57804 /examples/qmlscatter/qml/qmlscatter/main.qml | |
parent | 91c9f6791af049b873b7c60a88aa226eaec70c18 (diff) |
Theme documented
Task-number: QTRD-2633
Change-Id: Ib274ec236f50145df8fd4c2d83f62d4a9154687a
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlscatter/qml/qmlscatter/main.qml')
-rw-r--r-- | examples/qmlscatter/qml/qmlscatter/main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml index e4f95d09..636239bf 100644 --- a/examples/qmlscatter/qml/qmlscatter/main.qml +++ b/examples/qmlscatter/qml/qmlscatter/main.qml @@ -52,7 +52,7 @@ Item { //! [2] //! [3] theme: Theme3D { - type: AbstractGraph3D.ThemeIsabelle + type: Theme3D.ThemeIsabelle font.family: "Lucida Handwriting" font.pointSize: 40 } @@ -139,12 +139,12 @@ Item { text: "Change Theme" anchors.left: cameraToggle.right onClicked: { - if (scatterGraph.theme.type === AbstractGraph3D.ThemeArmyBlue) { + if (scatterGraph.theme.type === Theme3D.ThemeArmyBlue) { // Ownership of the theme is transferred and old theme is destroyed when setting // a new one, so we need to create them dynamically - scatterGraph.theme = Qt.createQmlObject('import QtDataVisualization 1.0; Theme3D {type: AbstractGraph3D.ThemeIsabelle}', parent); + scatterGraph.theme = Qt.createQmlObject('import QtDataVisualization 1.0; Theme3D {type: Theme3D.ThemeIsabelle}', parent); } else { - scatterGraph.theme = Qt.createQmlObject('import QtDataVisualization 1.0; Theme3D {type: AbstractGraph3D.ThemeArmyBlue}', parent); + scatterGraph.theme = Qt.createQmlObject('import QtDataVisualization 1.0; Theme3D {type: Theme3D.ThemeArmyBlue}', parent); } } } |