From 56265350a0a102ce86e80a70c5593445333ca94e Mon Sep 17 00:00:00 2001 From: Dominik Holland Date: Wed, 21 Mar 2018 16:54:18 +0100 Subject: Update the QIviSearchAndBrowseModel to use the new QIviPendingReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä --- examples/ivimedia/tuner/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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) }) } -- cgit v1.2.1