diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2016-04-12 22:21:46 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2016-04-13 08:51:05 +0000 |
commit | 284bdb5b30fee4f19fcb4b818298d8f3545c2457 (patch) | |
tree | 94bb4585a1b58bee2e645dc486574d79b2646252 /sysui | |
parent | b68f65d743f662bf7479814919af7362e6131cf6 (diff) | |
download | neptune-ui-284bdb5b30fee4f19fcb4b818298d8f3545c2457.tar.gz |
Getting rid of QtCreator and runtime warnings
Change-Id: I16e2181e0928eff48802e8d7a3e1371ba9e7ad84
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/Cloud/Store/AppStore.qml | 8 | ||||
-rw-r--r-- | sysui/Cluster/Cluster.qml | 2 | ||||
-rw-r--r-- | sysui/LaunchController.qml | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sysui/Cloud/Store/AppStore.qml b/sysui/Cloud/Store/AppStore.qml index 0f5b7b0..099862e 100644 --- a/sysui/Cloud/Store/AppStore.qml +++ b/sysui/Cloud/Store/AppStore.qml @@ -42,7 +42,7 @@ Item { signal loginSuccessful() function goBack() { - if (categoriesPage.state != "") + if (categoriesPage.state !== "") categoriesPage.goBack() else root.close(); @@ -58,11 +58,11 @@ Item { }) JSONBackend.serverCall(url, data, function(data) { if (data !== 0) { - if (data.status == "ok") { + if (data.status === "ok") { serverOnline = true login() //refresh() - } else if (data.status == "maintenance") { + } else if (data.status === "maintenance") { serverOnline = false serverReason = "maintenance" } else { @@ -81,7 +81,7 @@ Item { var data = {"username" : "t", "password" : "t", "imei" : "112163001487801"} JSONBackend.serverCall(url, data, function(data) { if (data !== 0) { - if (data.status == "ok") { + if (data.status === "ok") { print("LOGIN SUCCESSFUL"); loginSuccessful() } else { diff --git a/sysui/Cluster/Cluster.qml b/sysui/Cluster/Cluster.qml index 33422bf..cddef8b 100644 --- a/sysui/Cluster/Cluster.qml +++ b/sysui/Cluster/Cluster.qml @@ -90,7 +90,7 @@ Item { focus: Style.debugMode Keys.onPressed: { - if (event.key == Qt.Key_Space) { + if (event.key === Qt.Key_Space) { if (overlay.opacity < 0.5) overlay.opacity = 0.5 else overlay.opacity = 0 } diff --git a/sysui/LaunchController.qml b/sysui/LaunchController.qml index aba3681..0aa8436 100644 --- a/sysui/LaunchController.qml +++ b/sysui/LaunchController.qml @@ -166,7 +166,7 @@ StackView { acceptSurface = false; } - for (var i = 0; i < root.minimizedItems.length; ++i) { + for (i = 0; i < root.minimizedItems.length; ++i) { if (appID === root.minimizedItems[i]) { acceptSurface = false; // For now we assume that only navigation has a widget |