aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-18 12:53:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-18 12:44:05 -0800
commitbcfe505f097667545b0815895ccc79de3be5c5c8 (patch)
treef25a306524af0011e40f5d1b28ce8c435766e087 /mobile-widgets
parent2d12d251b74036a9e503b32aa3016bd52ac64235 (diff)
downloadsubsurface-bcfe505f097667545b0815895ccc79de3be5c5c8.tar.gz
mobile-widgets/qml: remove M126 warnings in main.qml
changed != --> !== and == --> === to make QML happy. Signed-off-by: jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/main.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index a38675319..33342c9e2 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -726,9 +726,9 @@ if you have network connectivity and want to sync your data to cloud storage."),
// this needs to pick the theme from persistent preference settings
var theme = PrefDisplay.theme
- if (theme == "Blue")
+ if (theme === "Blue")
blueTheme()
- else if (theme == "Pink")
+ else if (theme === "Pink")
pinkTheme()
else
darkTheme()
@@ -745,7 +745,7 @@ if you have network connectivity and want to sync your data to cloud storage."),
subsurfaceTheme.initialHeight = height
manager.appendTextToLog("first real change, so recalculating units and recording size as " + width + " x " + height)
setupUnits()
- } else if (rootItem.lastOrientation !== undefined && rootItem.lastOrientation != Screen.primaryOrientation) {
+ } else if (rootItem.lastOrientation !== undefined && rootItem.lastOrientation !== Screen.primaryOrientation) {
manager.appendTextToLog("Screen rotated, no action necessary")
rootItem.lastOrientation = Screen.primaryOrientation
setupUnits()
@@ -788,8 +788,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
manager.appendTextToLog("pageStack forced back to map")
}
} else if (pageStack.currentItem.objectName !== mapPage.objectName &&
- pageStack.lastItem.objectName === mapPage.objectName &&
- hackToOpenMap === 1 /* MapSelected */) {
+ pageStack.lastItem.objectName === mapPage.objectName &&
+ hackToOpenMap === 1 /* MapSelected */) {
// if we just picked the mapPage and are suddenly back on a different page
// force things back to the mapPage
manager.appendTextToLog("pageStack wrong page, switching back to map")