on xenial help sign in
Added actionState parser to the indicators-client text printer so that we get the icon.

Approved by PS Jenkins bot, Michał Sawicz.

commit034bf6e25886d15332f828e880407bc2fb9c9215 authorNick Dedekind <nicholas.dedekind@gmail.com> dateWed 2 Oct 2013, 13:09 (13 years ago) parent42f731714a4d61
2 files changed+6−5
Panel/Indicators/client/IndicatorsList.qml+2−5 Panel/Indicators/client/IndicatorsTree.qml+4
Panel/Indicators/client/IndicatorsList.qml+2−5
@@ -41,16 +41,13 @@ Page {
4141 delegate: Indicators.FramedMenuItem {
4242 anchors.left: parent.left
4343 anchors.right: parent.right
44− progression: true
4544 objectName: identifier
4645
4746 text: title
4847
4948 onClicked: {
50− if (progression) {
51− var new_page = Qt.createComponent("IndicatorsPage.qml");
52− page.pageStack.push(new_page.createObject(pages), {"indicatorProperties" : model.indicatorProperties, "pageSource" : model.pageSource});
53− }
49+ var new_page = Qt.createComponent("IndicatorsPage.qml");
50+ page.pageStack.push(new_page.createObject(pages), {"indicatorProperties" : model.indicatorProperties, "pageSource" : model.pageSource});
5451 }
5552
5653 Rectangle {
Panel/Indicators/client/IndicatorsTree.qml+4
@@ -44,6 +44,10 @@ Page {
4444 menuObjectPath: page.deviceMenuObjectPath
4545 }
4646
47+ Indicators.RootActionState {
48+ menu: unityModel
49+ }
50+
4751 Indicators.ModelPrinter {
4852 id: printer
4953 model: unityModel