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
libksysguard
Commits
77ec100b
Commit
77ec100b
authored
Oct 09, 2020
by
Arjen Hiemstra
Browse files
Add a "show title" checkbox to the appearance configuration
parent
6a75a284
Changes
1
Hide whitespace changes
Inline
Side-by-side
faces/ConfigAppearance.qml
View file @
77ec100b
...
...
@@ -40,6 +40,7 @@ Kirigami.FormLayout {
function
saveConfig
()
{
controller
.
title
=
cfg_title
;
controller
.
faceId
=
cfg_chartFace
;
controller
.
showTitle
=
cfg_showTitle
var
preset
=
pendingPreset
;
pendingPreset
=
""
;
...
...
@@ -51,9 +52,11 @@ Kirigami.FormLayout {
property
Faces.SensorFaceController
controller
property
alias
cfg_title
:
titleField
.
text
property
alias
cfg_showTitle
:
showTitleCheckbox
.
checked
property
string
cfg_chartFace
onCfg_titleChanged
:
configurationChanged
();
onCfg_showTitleChanged
:
configurationChanged
()
onCfg_chartFaceChanged
:
configurationChanged
();
// config keys of the selected preset to be applied on save
...
...
@@ -62,6 +65,7 @@ Kirigami.FormLayout {
Component.onCompleted
:
{
cfg_title
=
controller
.
title
;
cfg_chartFace
=
controller
.
faceId
;
cfg_showTitle
=
controller
.
showTitle
}
Charts.ColorGradientSource
{
...
...
@@ -131,9 +135,15 @@ Kirigami.FormLayout {
Kirigami.FormData.isSection
:
true
}
QQC2.TextField
{
id
:
titleField
RowLayout
{
Kirigami.FormData.label
:
i18nd
(
"
KSysGuardSensorFaces
"
,
"
Title:
"
)
QQC2.TextField
{
id
:
titleField
}
QQC2.CheckBox
{
id
:
showTitleCheckbox
text
:
i18nd
(
"
KSysGuardSensorFaces
"
,
"
Show Title
"
)
}
}
RowLayout
{
...
...
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