diff options
author | 2024-09-10 19:15:25 +0900 | |
---|---|---|
committer | 2024-09-11 18:40:18 +0900 | |
commit | 5c8f09d2c3c99f621b467ed5c1be4fac3a708e85 (patch) | |
tree | 9312e269961b14945a00db47ed236ca53ffbb149 /GUIModel/Menu/MenuAdasIconNormal.qml | |
parent | 17b016d08cf1680f58cbb9102f35949c8436207c (diff) |
Port the cluster-refgui demo supports both Qt5 and Qt6HEADtrout_19.90.0trout/19.90.019.90.0master
This demo can now run on both Qt5 and Qt6, also added a macro to switch with or without the backend so that it can be developed easily on the Windows desktop.
Bug-AGL: SPEC-5243
Change-Id: I99b12ad9779a477784df13b83a850387747bb588
Signed-off-by: Jiu Shanheng <shanheng.jiu@qt.io>
Diffstat (limited to 'GUIModel/Menu/MenuAdasIconNormal.qml')
-rw-r--r-- | GUIModel/Menu/MenuAdasIconNormal.qml | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/GUIModel/Menu/MenuAdasIconNormal.qml b/GUIModel/Menu/MenuAdasIconNormal.qml index 8442c5d..78ddf20 100644 --- a/GUIModel/Menu/MenuAdasIconNormal.qml +++ b/GUIModel/Menu/MenuAdasIconNormal.qml @@ -14,53 +14,53 @@ * limitations under the License. */ -import QtQuick 2.0
-import QtGraphicalEffects 1.0
-import QtQuick.Shapes 1.11
-
-Item{
- id: adasIconNormal
- property bool enabled: false
- property bool focused: false
-
- property alias onImage: onImage.source
- property alias offImage: offImage.source
- property alias textImage: textImage.source
-
- Image{
- id: offImage
- source: "qrc:/Images/NormalView/ADAS/adas_icon1_off.png"
- x: 171
- y: 186
- width: 102
- height: 90
- visible: !(adasIconNormal.enabled)
- }
- Image{
- id: onImage
- source: "qrc:/Images/NormalView/ADAS/adas_icon1_on.png"
- x: 171
- y: 186
- width: 102
- height: 90
- visible: adasIconNormal.enabled
- }
- Image{
- id: textImage
- source: "qrc:/Images/NormalView/ADAS/adas_text1.png"
- x: 202
- y: 278
- width: 40
- height: 18
- visible: true
- }
- Image{
- id: focusImage
- source: "qrc:/Images/NormalView/ADAS/adas_panel1.png"
- x: 160
- y: 164
- width: 124
- height: 158
- visible: adasIconNormal.focused
- }
-}
+import QtQuick 2.0 + +import QtQuick.Shapes 1.11 + +Item{ + id: adasIconNormal + property bool enabled: false + property bool focused: false + + property alias onImage: onImage.source + property alias offImage: offImage.source + property alias textImage: textImage.source + + Image{ + id: offImage + source: "qrc:/Images/NormalView/ADAS/adas_icon1_off.png" + x: 171 + y: 186 + width: 102 + height: 90 + visible: !(adasIconNormal.enabled) + } + Image{ + id: onImage + source: "qrc:/Images/NormalView/ADAS/adas_icon1_on.png" + x: 171 + y: 186 + width: 102 + height: 90 + visible: adasIconNormal.enabled + } + Image{ + id: textImage + source: "qrc:/Images/NormalView/ADAS/adas_text1.png" + x: 202 + y: 278 + width: 40 + height: 18 + visible: true + } + Image{ + id: focusImage + source: "qrc:/Images/NormalView/ADAS/adas_panel1.png" + x: 160 + y: 164 + width: 124 + height: 158 + visible: adasIconNormal.focused + } +} |