aboutsummaryrefslogtreecommitdiffstats
path: root/GUIModel/Menu/MenuAdasIconAdas.qml
diff options
context:
space:
mode:
authorJiu Shanheng <shanheng.jiu@qt.io>2024-09-10 19:15:25 +0900
committerJiu Shanheng <shanheng.jiu@qt.io>2024-09-11 18:40:18 +0900
commit5c8f09d2c3c99f621b467ed5c1be4fac3a708e85 (patch)
tree9312e269961b14945a00db47ed236ca53ffbb149 /GUIModel/Menu/MenuAdasIconAdas.qml
parent17b016d08cf1680f58cbb9102f35949c8436207c (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/MenuAdasIconAdas.qml')
-rw-r--r--GUIModel/Menu/MenuAdasIconAdas.qml102
1 files changed, 51 insertions, 51 deletions
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
+ }
+
+}