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 SDK
Commits
ea33aca6
Commit
ea33aca6
authored
Nov 21, 2020
by
Nicolas Fella
Browse files
Port some foreach
parent
e819a2b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
engineexplorer/engineexplorer.cpp
View file @
ea33aca6
...
...
@@ -151,7 +151,7 @@ void EngineExplorer::listEngines()
return
false
;
});
for
each
(
const
KPluginMetaData
&
engine
,
engines
)
{
for
(
const
KPluginMetaData
&
engine
:
qAsConst
(
engines
)
)
{
m_engines
->
addItem
(
QIcon
::
fromTheme
(
engine
.
iconName
()),
engine
.
pluginId
());
}
...
...
engineexplorer/main.cpp
View file @
ea33aca6
...
...
@@ -22,7 +22,7 @@ void listEngines()
int
maxLen
=
0
;
QMap
<
QString
,
QString
>
engines
;
const
auto
plugins
=
Plasma
::
PluginLoader
::
self
()
->
listDataEngineMetaData
();
for
each
(
const
KPluginMetaData
&
info
,
plugins
)
{
for
(
const
KPluginMetaData
&
info
:
plugins
)
{
int
len
=
info
.
pluginId
().
length
();
if
(
len
>
maxLen
)
{
...
...
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