summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-03-19 16:49:01 +0100
committerAntti Hölttä <ahoelttae@luxoft.com>2018-03-23 13:38:28 +0000
commit97ba455a6ba0e41aab384678ebf62c234d85a344 (patch)
tree84bba9ceaa15fa2b7ad8e95ea656a29d4c3c49fb /examples
parenta3af38e5f6df4a452f2be22d480faaffe31af908 (diff)
downloadqtivi-97ba455a6ba0e41aab384678ebf62c234d85a344.tar.gz
Use the new QIviPendingReply class in the autogenerator templates
Every method inside a qface file will now return a QIviPendingReply. This also changes the signature of the QIviVehicleFunctions module and its backend implementations. Also updated the window_qml example to make use of the new returned QIviPendingReplies from the open() and close() calls. Task-number: QTAUTO-837 Change-Id: Icf8a31fcd94630254f71b0c4fb2e1ef4296591af Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ivivehiclefunctions/window_qml/WindowItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ivivehiclefunctions/window_qml/WindowItem.qml b/examples/ivivehiclefunctions/window_qml/WindowItem.qml
index a261ce8..d740fff 100644
--- a/examples/ivivehiclefunctions/window_qml/WindowItem.qml
+++ b/examples/ivivehiclefunctions/window_qml/WindowItem.qml
@@ -84,12 +84,12 @@ GroupBox {
Button {
text: "open"
- onClicked: zone.open()
+ onClicked: zone.open().then(function(){console.error(zone.zone + " window opened")}, function(){console.error("opening " + zone.zone + " window failed!")})
}
Button {
text: "close"
- onClicked: zone.close()
+ onClicked: zone.close().then(function(){console.error(zone.zone + " window closed")}, function(){console.error("closing " + zone.zone + " window failed!")})
}
RowLayout {