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
Plasma Desktop
Commits
9f8f2269
Commit
9f8f2269
authored
Apr 28, 2022
by
Fushan Wen
Committed by
Nate Graham
May 17, 2022
Browse files
desktoppackage: Rename root to appearanceRoot
parent
84eb6584
Changes
1
Hide whitespace changes
Inline
Side-by-side
desktoppackage/contents/configuration/ConfigurationContainmentAppearance.qml
View file @
9f8f2269
...
...
@@ -15,10 +15,10 @@ import org.kde.kirigami 2.5 as Kirigami
import
org
.
kde
.
kcm
1.4
AbstractKCM
{
id
:
r
oot
id
:
appearanceR
oot
signal
settingValueChanged
property
int
formAlignment
:
wallpaperComboBox
.
Kirigami
.
ScenePosition
.
x
-
r
oot
.
Kirigami
.
ScenePosition
.
x
+
(
Kirigami
.
Units
.
largeSpacing
/
2
)
property
int
formAlignment
:
wallpaperComboBox
.
Kirigami
.
ScenePosition
.
x
-
appearanceR
oot
.
Kirigami
.
ScenePosition
.
x
+
(
Kirigami
.
Units
.
largeSpacing
/
2
)
property
string
currentWallpaper
:
""
property
string
containmentPlugin
:
""
...
...
@@ -33,9 +33,9 @@ AbstractKCM {
configDialog
.
wallpaperConfiguration
[
key
]
=
main
.
currentItem
[
"
cfg_
"
+
key
]
}
}
configDialog
.
currentWallpaper
=
r
oot
.
currentWallpaper
;
configDialog
.
currentWallpaper
=
appearanceR
oot
.
currentWallpaper
;
configDialog
.
applyWallpaper
()
configDialog
.
containmentPlugin
=
r
oot
.
containmentPlugin
configDialog
.
containmentPlugin
=
appearanceR
oot
.
containmentPlugin
}
ColumnLayout
{
...
...
@@ -85,8 +85,8 @@ AbstractKCM {
textRole
:
"
name
"
onActivated
:
{
var
model
=
configDialog
.
containmentPluginsConfigModel
.
get
(
currentIndex
)
r
oot
.
containmentPlugin
=
model
.
pluginName
r
oot
.
settingValueChanged
()
appearanceR
oot
.
containmentPlugin
=
model
.
pluginName
appearanceR
oot
.
settingValueChanged
()
}
}
...
...
@@ -101,10 +101,10 @@ AbstractKCM {
textRole
:
"
name
"
onActivated
:
{
var
model
=
configDialog
.
wallpaperConfigModel
.
get
(
currentIndex
)
r
oot
.
currentWallpaper
=
model
.
pluginName
appearanceR
oot
.
currentWallpaper
=
model
.
pluginName
configDialog
.
currentWallpaper
=
model
.
pluginName
main
.
sourceFile
=
model
.
source
r
oot
.
settingValueChanged
()
appearanceR
oot
.
settingValueChanged
()
}
}
NewStuff.Button
{
...
...
@@ -118,7 +118,7 @@ AbstractKCM {
ColumnLayout
{
id
:
switchContainmentWarning
Layout.fillWidth
:
true
visible
:
configDialog
.
containmentPlugin
!==
r
oot
.
containmentPlugin
visible
:
configDialog
.
containmentPlugin
!==
appearanceR
oot
.
containmentPlugin
QQC2.Label
{
Layout.fillWidth
:
true
text
:
i18nd
(
"
plasma_shell_org.kde.plasma.desktop
"
,
"
Layout changes must be applied before other changes can be made
"
)
...
...
@@ -174,7 +174,7 @@ AbstractKCM {
for
(
var
key
in
wallpaperConfig
)
{
var
changedSignal
=
newItem
[
"
cfg_
"
+
key
+
"
Changed
"
]
if
(
changedSignal
)
{
changedSignal
.
connect
(
r
oot
.
settingValueChanged
)
changedSignal
.
connect
(
appearanceR
oot
.
settingValueChanged
)
}
}
}
else
{
...
...
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