Verified Commit a6de3265 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

plasmoid: Pass down screenLayouts model explicitly through a property

parent d83d11e9
......@@ -14,6 +14,17 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
ColumnLayout {
id: root
// Screen layouts model.
//
// type: [{
// iconName: string,
// label: string,
// action: enum<OsdAction::Action>,
// }]
property var screenLayouts
spacing: PlasmaCore.Units.smallSpacing * 2
states: [
......
......@@ -88,6 +88,7 @@ Item {
ScreenLayoutSelection {
Layout.leftMargin: PlasmaCore.Units.smallSpacing
Layout.fillWidth: true
screenLayouts: root.screenLayouts
}
PresentationModeItem {
......
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