Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KScreen
Commits
a6de3265
Verified
Commit
a6de3265
authored
May 19, 2022
by
ivan tkachenko
Browse files
plasmoid: Pass down screenLayouts model explicitly through a property
parent
d83d11e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
plasmoid/package/contents/ui/ScreenLayoutSelection.qml
View file @
a6de3265
...
...
@@ -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
:
[
...
...
plasmoid/package/contents/ui/main.qml
View file @
a6de3265
...
...
@@ -88,6 +88,7 @@ Item {
ScreenLayoutSelection
{
Layout.leftMargin
:
PlasmaCore
.
Units
.
smallSpacing
Layout.fillWidth
:
true
screenLayouts
:
root
.
screenLayouts
}
PresentationModeItem
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment