summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qmlcamera/qml/qmlcamera/main.qml12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/qmlcamera/qml/qmlcamera/main.qml b/tests/qmlcamera/qml/qmlcamera/main.qml
index 0f708615..6b83bde2 100644
--- a/tests/qmlcamera/qml/qmlcamera/main.qml
+++ b/tests/qmlcamera/qml/qmlcamera/main.qml
@@ -179,9 +179,17 @@ Rectangle {
anchors.bottom: dataToggle.top
width: camControlArea.width
text: "Remove Shuttle"
+ property bool addObject: false
onClicked: {
- testChart.removeCustomItemAt(Qt.vector3d(5.0,35.0,3.0))
- text = "Shuttle has been deleted"
+ if (addObject === true) {
+ testChart.addCustomItem(shuttleItem)
+ text = "Remove Shuttle"
+ addObject = false
+ } else {
+ testChart.releaseCustomItem(shuttleItem)
+ text = "Add Shuttle"
+ addObject = true
+ }
}
}
}