summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-05-14 13:40:35 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-05-14 13:44:46 +0300
commit8015a58ea819b41e0a896ea9e7d57d7f3a9f1c5f (patch)
tree486a6017c2bd0fdaeb408aed46b76587ddd034dd /tests
parent824cf363f6ab999d2fc38ebdab1f7faae5559ad0 (diff)
Added visible flag and possibility to release ownership of custom item
Task-number: QTRD-3080 Change-Id: I198930c48fe9bce6a158406aff5fbf31272b9afe Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
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
+ }
}
}
}