From 5c8f09d2c3c99f621b467ed5c1be4fac3a708e85 Mon Sep 17 00:00:00 2001 From: Jiu Shanheng Date: Tue, 10 Sep 2024 19:15:25 +0900 Subject: Port the cluster-refgui demo supports both Qt5 and Qt6 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 --- GUIModel/Menu/MenuAdasIconAdas.qml | 102 ++++++++++++++++++------------------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'GUIModel/Menu/MenuAdasIconAdas.qml') diff --git a/GUIModel/Menu/MenuAdasIconAdas.qml b/GUIModel/Menu/MenuAdasIconAdas.qml index d1b8fef..0988cb8 100644 --- a/GUIModel/Menu/MenuAdasIconAdas.qml +++ b/GUIModel/Menu/MenuAdasIconAdas.qml @@ -14,54 +14,54 @@ * limitations under the License. */ -import QtQuick 2.0 -import QtGraphicalEffects 1.0 -import QtQuick.Shapes 1.11 - -Item{ - id: adasIconAdas - - 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/ADASView/MENU/adas_icon1_off.png" - x:170 - y:186 - width:104 - height:90 - visible: !(adasIconAdas.enabled) - } - Image{ - id: onImage - source: "qrc:/Images/ADASView/MENU/adas_icon1_on.png" - x:170 - y:186 - width:104 - height:90 - visible: adasIconAdas.enabled - } - Image{ - id: textImage - source: "qrc:/Images/ADASView/MENU/adas_text1.png" - x:202 - y:278 - width:40 - height:18 - visible:true - } - Image{ - source: "qrc:/Images/ADASView/MENU/adas_panel1.png" - x:165 - y:170 - width:114 - height:144 - visible: adasIconAdas.focused - } - -} +import QtQuick 2.0 + +import QtQuick.Shapes 1.11 + +Item{ + id: adasIconAdas + + 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/ADASView/MENU/adas_icon1_off.png" + x:170 + y:186 + width:104 + height:90 + visible: !(adasIconAdas.enabled) + } + Image{ + id: onImage + source: "qrc:/Images/ADASView/MENU/adas_icon1_on.png" + x:170 + y:186 + width:104 + height:90 + visible: adasIconAdas.enabled + } + Image{ + id: textImage + source: "qrc:/Images/ADASView/MENU/adas_text1.png" + x:202 + y:278 + width:40 + height:18 + visible:true + } + Image{ + source: "qrc:/Images/ADASView/MENU/adas_panel1.png" + x:165 + y:170 + width:114 + height:144 + visible: adasIconAdas.focused + } + +} -- cgit 1.2.3-korg