summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-12-05 12:27:21 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-12-05 12:47:59 +0200
commit9635a5bb3605d77d8284ebacebe46c803c18ca6c (patch)
tree5cc444c4c8aba1980107b1eb80c7e1ff8c6f8d57 /examples
parent426303aecda15a9f60ff7d124e85114e10e73144 (diff)
QML example fixes
Change-Id: I9a7ad90a831bb06d1680e2b32f9ac3003e432aee Change-Id: I9a7ad90a831bb06d1680e2b32f9ac3003e432aee Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/qmlbars/qml/qmlbars/main.qml2
-rw-r--r--examples/qmlscatter/qml/qmlscatter/main.qml6
-rw-r--r--examples/qmlsurface/qml/qmlsurface/main.qml2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/qmlbars/qml/qmlbars/main.qml b/examples/qmlbars/qml/qmlbars/main.qml
index 742a2a62..a4080f6d 100644
--- a/examples/qmlbars/qml/qmlbars/main.qml
+++ b/examples/qmlbars/qml/qmlbars/main.qml
@@ -87,7 +87,7 @@ Item {
barThickness: 0.7
barSpacing: Qt.size(0.5, 0.5)
barSpacingRelative: false
- scene.activeCamera.cameraPreset: AbstractGraph3D.CameraPresetIsometricLeftHigh
+ scene.activeCamera.cameraPreset: Camera3D.CameraPresetIsometricLeftHigh
columnAxis: graphAxes.column
valueAxis: graphAxes.income
diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml
index 179980be..a03db211 100644
--- a/examples/qmlscatter/qml/qmlscatter/main.qml
+++ b/examples/qmlscatter/qml/qmlscatter/main.qml
@@ -166,10 +166,10 @@ Item {
text: "Change Camera Placement"
anchors.left: smoothToggle.right
onClicked: {
- if (scatterGraph.scene.activeCamera.cameraPreset === AbstractGraph3D.CameraPresetFront) {
- scatterGraph.scene.activeCamera.cameraPreset = AbstractGraph3D.CameraPresetIsometricRightHigh;
+ if (scatterGraph.scene.activeCamera.cameraPreset === Camera3D.CameraPresetFront) {
+ scatterGraph.scene.activeCamera.cameraPreset = Camera3D.CameraPresetIsometricRightHigh;
} else {
- scatterGraph.scene.activeCamera.cameraPreset = AbstractGraph3D.CameraPresetFront;
+ scatterGraph.scene.activeCamera.cameraPreset = Camera3D.CameraPresetFront;
}
}
}
diff --git a/examples/qmlsurface/qml/qmlsurface/main.qml b/examples/qmlsurface/qml/qmlsurface/main.qml
index a90b916e..8e887a5d 100644
--- a/examples/qmlsurface/qml/qmlsurface/main.qml
+++ b/examples/qmlsurface/qml/qmlsurface/main.qml
@@ -58,7 +58,7 @@ Item {
}
shadowQuality: AbstractGraph3D.ShadowQualityMedium
selectionMode: AbstractGraph3D.SelectionSlice | AbstractGraph3D.SelectionItemAndRow
- scene.activeCamera.cameraPreset: AbstractGraph3D.CameraPresetIsometricLeft
+ scene.activeCamera.cameraPreset: Camera3D.CameraPresetIsometricLeft
axisY.min: 0.0
axisY.max: 500.0
axisX.segmentCount: 10