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
System Settings
Commits
9582a455
Commit
9582a455
authored
Oct 29, 2020
by
Benjamin Port
Committed by
Benjamin Port
Oct 30, 2020
Browse files
Save highlight default state
BUG: 427806
parent
432a478c
Changes
1
Hide whitespace changes
Inline
Side-by-side
sidebar/SidebarMode.cpp
View file @
9582a455
...
...
@@ -31,6 +31,7 @@
#include
<QAction>
#include
<KAboutData>
#include
<KConfigGroup>
#include
<KCModuleInfo>
#include
<KDescendantsProxyModel>
#include
<KStandardAction>
...
...
@@ -282,6 +283,7 @@ SidebarMode::SidebarMode( QObject *parent, const QVariantList &args )
SidebarMode
::~
SidebarMode
()
{
config
().
sync
();
delete
d
;
}
...
...
@@ -370,6 +372,10 @@ void SidebarMode::initEvent()
d
->
moduleView
->
setDefaultsVisible
(
false
);
d
->
moduleView
->
setResetVisible
(
false
);
}
if
(
config
().
readEntry
(
"HighlightNonDefaultSettings"
,
false
))
{
toggleDefaultsIndicatorsVisibility
();
}
}
QAction
*
SidebarMode
::
action
(
const
QString
&
name
)
const
...
...
@@ -680,6 +686,7 @@ void SidebarMode::toggleDefaultsIndicatorsVisibility()
}
}
}
config
().
writeEntry
(
"HighlightNonDefaultSettings"
,
d
->
m_defaultsIndicatorsVisible
);
emit
defaultsIndicatorsVisibleChanged
();
}
...
...
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