on xenial help sign in
Fix indicator text binding loop
75645e1Jan Sprinz
qml/Panel/Indicators/IndicatorItem.qml+2−2
@@ -23,7 +23,7 @@ IndicatorDelegate {
23 id: root
23 id: root
24
24
25 property string identifier
25 property string identifier
26− property string title: indicatorName.text
26+ property alias title: indicatorName.text
27 property alias leftLabel: leftLabelItem.text
27 property alias leftLabel: leftLabelItem.text
28 property alias rightLabel: rightLabelItem.text
28 property alias rightLabel: rightLabelItem.text
29 property var icons: undefined
29 property var icons: undefined
@@ -146,7 +146,7 @@ IndicatorDelegate {
146 anchors.horizontalCenter: parent.horizontalCenter
146 anchors.horizontalCenter: parent.horizontalCenter
147 width: contentWidth > 0 ? contentWidth + units.gu(1) : 0
147 width: contentWidth > 0 ? contentWidth + units.gu(1) : 0
148
148
149− text: title !== "" ? title : identifier
149+ text: identifier
150 fontSize: "x-small"
150 fontSize: "x-small"
151 font.weight: Font.Light
151 font.weight: Font.Light
152 horizontalAlignment: Text.AlignHCenter
152 horizontalAlignment: Text.AlignHCenter