summaryrefslogtreecommitdiffstats
path: root/tests/qmlcamera
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-08-26 11:26:06 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-08-26 11:57:58 +0300
commitfcac33d0ee25115808ca43810cf6a3438e2da227 (patch)
tree476ccc9bef5aa83204144a43f86c13cadb81b62d /tests/qmlcamera
parent5a51d06ec8f0210f51e65abfde9f868ab7bfa8ef (diff)
Reflection API added
Task-number: QTRD-3287 Change-Id: I6c06b8fe025e0f1f87be00be906cab0e1f18a19f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'tests/qmlcamera')
-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
+ }
+ }
+ }
}