summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-13 21:08:36 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-13 21:08:36 +0800
commit2cb52d15b6608a21c89eaf291fc8633d1bfd0d95 (patch)
treeeb0759bb0a430a8bcd23bb83c460f0a0a2e5c206
parent29b5bafe16ba82773da97c77951309d585bc9a6b (diff)
Use literal comparison
-rw-r--r--CardGrid.ui.qml10
-rw-r--r--Header.qml10
2 files changed, 10 insertions, 10 deletions
diff --git a/CardGrid.ui.qml b/CardGrid.ui.qml
index 2bfa20d..90ef11d 100644
--- a/CardGrid.ui.qml
+++ b/CardGrid.ui.qml
@@ -17,11 +17,11 @@ Item {
property alias imageArea: imageArea
property alias titleArea: titleArea
// property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.."
- property bool doesntEmbed: Qt.platform.os == "android"
- || Qt.platform.os == "linux"
- || Qt.platform.os == "osx"
- || Qt.platform.os == "unix"
- || Qt.platform.os == "windows"
+ property bool doesntEmbed: Qt.platform.os === "android"
+ || Qt.platform.os === "linux"
+ || Qt.platform.os === "osx"
+ || Qt.platform.os === "unix"
+ || Qt.platform.os === "windows"
DropShadow {
source: rectangle
diff --git a/Header.qml b/Header.qml
index 761a16a..b0cfb71 100644
--- a/Header.qml
+++ b/Header.qml
@@ -8,11 +8,11 @@ ToolBar {
property alias optionSettings: settings
property alias optionHelp: help
property alias optionSign: sign
- property bool doesntEmbed: Qt.platform.os == "android"
- || Qt.platform.os == "linux"
- || Qt.platform.os == "osx"
- || Qt.platform.os == "unix"
- || Qt.platform.os == "windows"
+ property bool doesntEmbed: Qt.platform.os === "android"
+ || Qt.platform.os === "linux"
+ || Qt.platform.os === "osx"
+ || Qt.platform.os === "unix"
+ || Qt.platform.os === "windows"
background: Rectangle {
implicitHeight: 64