diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-10-18 17:33:51 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-10-19 12:21:15 +0000 |
commit | cccd8d6c20323686f95fcdb4f0bd0e3e27723bb9 (patch) | |
tree | 45eda209378434ab5284c431630dc01ce1f384dd | |
parent | 6691439d2ad0c89cf3482eeae422fe0f55ccf3e7 (diff) |
example: adapt to use the renamed API
Change-Id: I83f12bcdd18f13b025a8c4dd2898d8a368316e9e
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
-rw-r--r-- | examples/qml/basic/main.qml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/qml/basic/main.qml b/examples/qml/basic/main.qml index 5e4825d..4749a67 100644 --- a/examples/qml/basic/main.qml +++ b/examples/qml/basic/main.qml @@ -57,15 +57,15 @@ Window { anchors.leftMargin: 10 anchors.topMargin: 10 - Label { text: "CLIENT:"; Layout.bottomMargin: 14 } - Label { text: "Version: " + OTAClient.clientVersion } - Label { text: "Description: " + OTAClient.clientDescription } - Label { text: "Revision: " + OTAClient.clientRevision } + Label { text: "BOOTED:"; Layout.bottomMargin: 14 } + Label { text: "Version: " + OTAClient.bootedVersion } + Label { text: "Description: " + OTAClient.bootedDescription } + Label { text: "Revision: " + OTAClient.bootedRevision } - Label { text: "SERVER:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } - Label { text: "Version: " + OTAClient.serverVersion } - Label { text: "Description: " + OTAClient.serverDescription } - Label { text: "Revision: " + OTAClient.serverRevision } + Label { text: "REMOTE:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } + Label { text: "Version: " + OTAClient.remoteVersion } + Label { text: "Description: " + OTAClient.remoteDescription } + Label { text: "Revision: " + OTAClient.remoteRevision } Label { text: "ROLLBACK:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } Label { text: "Version: " + OTAClient.rollbackVersion } @@ -82,7 +82,7 @@ Window { if (!otaReady()) return; log("Fetcing OTA info...") - OTAClient.fetchServerInfo() + OTAClient.fetchRemoteInfo() } } Button { @@ -138,8 +138,8 @@ Window { onErrorChanged: log(error) onStatusChanged: log(status) onInitializationFinished: log("Initialization " + (OTAClient.initialized ? "finished" : "failed")) - onFetchServerInfoFinished: { - log("FetchServerInfo " + (success ? "finished" : "failed")) + onFetchRemoteInfoFinished: { + log("Fetching info from a remote server " + (success ? "finished" : "failed")) if (success) log("Update available: " + OTAClient.updateAvailable) } |