summaryrefslogtreecommitdiffstats
path: root/tests/qmlcamera/qml/qmlcamera/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qmlcamera/qml/qmlcamera/main.qml')
-rw-r--r--tests/qmlcamera/qml/qmlcamera/main.qml18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/qmlcamera/qml/qmlcamera/main.qml b/tests/qmlcamera/qml/qmlcamera/main.qml
index cb1737f6..cb22af59 100644
--- a/tests/qmlcamera/qml/qmlcamera/main.qml
+++ b/tests/qmlcamera/qml/qmlcamera/main.qml
@@ -41,7 +41,7 @@ Rectangle {
xRotation: camControlArea.xValue
yRotation: camControlArea.yValue
zoomLevel: zoomSlider.value
- target: Qt.vector3d(1.0, 1.0, 1.0)
+ target: Qt.vector3d(0.5, 0.5, 0.5)
}
Item {
@@ -214,4 +214,20 @@ Rectangle {
}
}
}
+
+ Button {
+ id: reflectionToggle
+ anchors.bottom: shuttleAdd.top
+ width: camControlArea.width
+ text: "Show reflections"
+ onClicked: {
+ if (testChart.reflection === true) {
+ text = "Show reflections"
+ testChart.reflection = false
+ } else {
+ text = "Hide reflections"
+ testChart.reflection = true
+ }
+ }
+ }
}