Verified Commit 305253dc authored by ivan tkachenko's avatar ivan tkachenko
Browse files

Improve QML/JS code slightly

GIT_SILENT
parent 7ea44087
Pipeline #152198 passed with stage
in 3 minutes and 28 seconds
......@@ -33,15 +33,11 @@ PlasmaCore.Dialog {
Repeater {
id: actionRepeater
property int currentIndex: 0
model: {
return OsdAction.actionOrder().map(function (layout) {
return {
iconSource: OsdAction.actionIconName(layout),
label: OsdAction.actionLabel(layout),
action: layout
}
})
}
model: OsdAction.actionOrder().map(layout => ({
iconSource: OsdAction.actionIconName(layout),
label: OsdAction.actionLabel(layout),
action: layout,
}))
delegate: PlasmaComponents.Button {
property int actionId: modelData.action
......@@ -77,6 +73,7 @@ PlasmaCore.Dialog {
}
}
}
PlasmaExtras.Heading {
text: root.infoText
horizontalAlignment: Text.AlignHCenter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment