on xenial help sign in
Use alias instead of separate property
955006dMichał Sawicz
qml/Dash/Previews/PreviewActionCombo.qml+3−3
@@ -25,7 +25,7 @@ Item {
25 signal triggeredAction(var actionData)
25 signal triggeredAction(var actionData)
26
26
27 property alias model: actionRepeater.model
27 property alias model: actionRepeater.model
28− property color strokeColor: Theme.palette.normal.textBase
28+ property alias strokeColor: moreButton.strokeColor
29
29
30 Button {
30 Button {
31 id: moreButton
31 id: moreButton
@@ -33,7 +33,7 @@ Item {
33
33
34 objectName: "moreLessButton"
34 objectName: "moreLessButton"
35 text: !expanded ? i18n.tr("More...") : i18n.tr("Less...")
35 text: !expanded ? i18n.tr("More...") : i18n.tr("Less...")
36− strokeColor: root.strokeColor
36+ strokeColor: Theme.palette.normal.baseText
37 onClicked: expanded = !expanded
37 onClicked: expanded = !expanded
38 width: parent.width
38 width: parent.width
39 }
39 }
@@ -61,7 +61,7 @@ Item {
61 data: modelData
61 data: modelData
62 width: implicitWidth < parent.width ? parent.width : implicitWidth
62 width: implicitWidth < parent.width ? parent.width : implicitWidth
63 onClicked: root.triggeredAction(modelData)
63 onClicked: root.triggeredAction(modelData)
64− strokeColor: root.strokeColor
64+ strokeColor: moreButton.strokeColor
65 }
65 }
66 }
66 }
67 }
67 }