summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/controls/main.qml
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-01-12 15:00:21 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-01-12 17:11:36 +0000
commit227c3db205d3f56ba11873b5d95f94ce6744e77f (patch)
tree90d1025c1e8fa7f5617aad178008ac898234bb6b /examples/qt3d/controls/main.qml
parentd0da6c8b363da4715eb96fc0e24f802340234ac1 (diff)
Camera moved - controls
From : -12 / -4 to 4 / 12. Obj file updated and rotated 90deg on the X axis. Rotation sliders for x, y and z corrected to all start on 0. Change-Id: I43850a421029d1aef8f2f65526ce507ab22fef2b Task-number: QTBUG-49800 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d/controls/main.qml')
-rw-r--r--examples/qt3d/controls/main.qml18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/qt3d/controls/main.qml b/examples/qt3d/controls/main.qml
index c0bf1a637..890714408 100644
--- a/examples/qt3d/controls/main.qml
+++ b/examples/qt3d/controls/main.qml
@@ -123,9 +123,9 @@ Item {
Slider {
id: rotation_x
Layout.fillWidth: true
- minimumValue: 45
- maximumValue: 135
- value: rotationValue + 90
+ minimumValue: -45
+ maximumValue: 45
+ value: rotationValue
}
}
RowLayout {
@@ -133,9 +133,9 @@ Item {
Slider {
id: rotation_y
Layout.fillWidth: true
- minimumValue: 135
- maximumValue: 225
- value: rotationValue + 180
+ minimumValue: -45
+ maximumValue: 45
+ value: rotationValue
}
}
RowLayout {
@@ -168,9 +168,9 @@ Item {
Slider {
id: viewCenter_z
Layout.fillWidth: true
- minimumValue: -12
- maximumValue: -4
- value: -7.5
+ minimumValue: 4
+ maximumValue: 12
+ value: 7.5
}
}