From 94235c2e633845951ce6c947965789bb3f8ee7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Mon, 2 Dec 2013 08:43:02 +0200 Subject: Theme documented Task-number: QTRD-2633 Change-Id: Ib274ec236f50145df8fd4c2d83f62d4a9154687a Reviewed-by: Miikka Heikkinen --- examples/qmlscatter/qml/qmlscatter/main.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/qmlscatter/qml/qmlscatter/main.qml') 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); } } } -- cgit v1.2.3