3131 property var loadedOverlays: [" cape-test" , " cape-test2" ] // currently loaded overlay
3232 property bool pinmuxActive: getPinmuxActive () // determines wheter the pinmux is active or not
3333 property string previewType: " " // type for preview mode
34+ property string previewOverlay: " " // overlay for preview mode
3435 property bool previewEnabled: false // enabled the preview mdoe
3536 property bool previewActive: getPreviewActive () // holds whether the preview is active or not
3637 property string gpioDirection: " unmodified" // type of the gpio pin (in or out)
@@ -109,7 +110,12 @@ Item {
109110 searchValue = main .gpioValue
110111 }
111112 else if (main .previewActive ) {
112- searchValue = main .previewType
113+ if (main .previewType != " " )
114+ searchValue = main .previewType
115+ else if (overlayPreviewTimer .x ) // previewing an overlay -> blinking
116+ return " white"
117+ else
118+ searchValue = main .defaultFunction
113119 }
114120 else if (main .pinmuxActive ) {
115121 searchValue = main .type
@@ -130,6 +136,9 @@ Item {
130136
131137 function getPreviewActive () {
132138
139+ if (previewEnabled && (previewType == " " ) && (previewOverlay == overlay))
140+ return true
141+
133142 if ((! previewEnabled) || (previewType == " " ))
134143 return false
135144
@@ -146,6 +155,16 @@ Item {
146155 width: 100
147156 height: 62
148157
158+ Timer {
159+ property color previewColor: " white"
160+ property bool x: true
161+ id: overlayPreviewTimer
162+ interval: 400
163+ running: previewActive && (previewOverlay != " " )
164+ repeat: true
165+ onTriggered: x = ! x
166+ }
167+
149168 ToolTip {
150169 anchors .left : rightSide? parent .right : undefined
151170 anchors .leftMargin : parent .width * 0.8
@@ -156,7 +175,7 @@ Item {
156175 color: " white"
157176 border .color : " black"
158177
159- visible: (comboBox .hovered || mouseArea .containsMouse ) && ! (previewEnabled && (previewType == " " ))
178+ visible: (comboBox .hovered || comboBox2 . hovered || comboBox3 . hovered || mouseArea .containsMouse ) && ! (previewEnabled && (previewType == " " ))
160179 z: 1000
161180
162181 Text {
0 commit comments