Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
b603a9dd
Commit
b603a9dd
authored
Dec 01, 2021
by
Nicolas Fella
Browse files
Use range-based for loop
parent
148951e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kontactplugin/summary/kcmkontactsummary.cpp
View file @
b603a9dd
...
...
@@ -116,21 +116,19 @@ void KCMKontactSummary::load()
mPluginView
->
clear
();
KPluginInfo
::
List
pluginList
=
KPluginInfo
::
fromMetaData
(
pluginMetaDatas
);
KPluginInfo
::
List
::
Iterator
it
;
KPluginInfo
::
List
::
Iterator
end
(
pluginList
.
end
());
for
(
it
=
pluginList
.
begin
();
it
!=
end
;
++
it
)
{
it
->
setConfig
(
KConfigGroup
(
&
config
,
"Plugins"
));
it
->
load
();
for
(
auto
plugin
:
std
::
as_const
(
pluginList
))
{
plugin
.
setConfig
(
KConfigGroup
(
&
config
,
"Plugins"
));
plugin
.
load
();
if
(
!
it
->
isPluginEnabled
())
{
if
(
!
plugin
.
isPluginEnabled
())
{
continue
;
}
QVariant
var
=
it
->
property
(
QStringLiteral
(
"X-KDE-KontactPluginHasSummary"
));
QVariant
var
=
plugin
.
property
(
QStringLiteral
(
"X-KDE-KontactPluginHasSummary"
));
if
(
var
.
isValid
()
&&
var
.
toBool
()
==
true
)
{
auto
item
=
new
PluginItem
(
*
it
,
mPluginView
);
auto
item
=
new
PluginItem
(
plugin
,
mPluginView
);
if
(
activeSummaries
.
contains
(
it
->
pluginName
()))
{
if
(
activeSummaries
.
contains
(
plugin
.
pluginName
()))
{
item
->
setCheckState
(
0
,
Qt
::
Checked
);
}
else
{
item
->
setCheckState
(
0
,
Qt
::
Unchecked
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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