summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2018-03-21 16:54:18 +0100
committerAntti Hölttä <ahoelttae@luxoft.com>2018-03-28 09:03:41 +0000
commit56265350a0a102ce86e80a70c5593445333ca94e (patch)
treef4accdb22dcd2b4cf1a89d14fc8f2ce59466f7f7 /examples
parent6df85b230cec05c5cb9647c8987e5bfd737215e9 (diff)
downloadqtivi-56265350a0a102ce86e80a70c5593445333ca94e.tar.gz
Update the QIviSearchAndBrowseModel to use the new QIviPendingReply
Because of this, the indexOf function is now easier to implement and works from QML and C++. Task-number: QTAUTO-838 Change-Id: I094511abf8f55fd9728aa94e552dcc79f9bf0b58 Reviewed-by: Antti Hölttä <ahoelttae@luxoft.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ivimedia/tuner/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ivimedia/tuner/main.qml b/examples/ivimedia/tuner/main.qml
index 6c43dff..01322e9 100644
--- a/examples/ivimedia/tuner/main.qml
+++ b/examples/ivimedia/tuner/main.qml
@@ -212,8 +212,8 @@ ApplicationWindow {
}
function checkExists() {
- presetsModel.indexOf(model.item, function (index) {
- addButton.enabled = (index == -1)
+ presetsModel.indexOf(model.item).then(function (index) {
+ addButton.enabled = (index === -1)
})
}