From 2cb52d15b6608a21c89eaf291fc8633d1bfd0d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Feb 2023 21:08:36 +0800 Subject: Use literal comparison --- CardGrid.ui.qml | 10 +++++----- Header.qml | 10 +++++----- 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 -- cgit v1.2.3