on xenial help sign in
Add proper widget objectNames.
ea18cc4Allan LeSage
Panel/IndicatorItem.qml+7
@@ -27,6 +27,7 @@ Item {
27 property bool dimmed: false
27 property bool dimmed: false
28 property var indicatorProperties: undefined
28 property var indicatorProperties: undefined
29 property bool indicatorVisible: loader.item ? loader.item.enabled : false
29 property bool indicatorVisible: loader.item ? loader.item.enabled : false
30+ property string identifier: undefined
30
31
31 opacity: dimmed ? 0.4 : 1
32 opacity: dimmed ? 0.4 : 1
32 Behavior on opacity { StandardAnimation {} }
33 Behavior on opacity { StandardAnimation {} }
@@ -45,6 +46,12 @@ Item {
45 }
46 }
46 }
47 }
47 }
48 }
49+
50+ Binding {
51+ target: loader.item
52+ property: "objectName"
53+ value: model.identifier + "-widget"
54+ }
48 }
55 }
49
56
50 Rectangle {
57 Rectangle {
Panel/IndicatorRow.qml+1
@@ -92,6 +92,7 @@ Item {
92
92
93 IndicatorItem {
93 IndicatorItem {
94 id: indicatorItem
94 id: indicatorItem
95+ identifier: model.identifier
95 height: parent.height
96 height: parent.height
96
97
97 highlighted: indicatorRow.state != "initial" ? itemWrapper.ownIndex == indicatorRow.currentItemIndex : false
98 highlighted: indicatorRow.state != "initial" ? itemWrapper.ownIndex == indicatorRow.currentItemIndex : false