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 Workspace
Commits
773be564
Commit
773be564
authored
Nov 20, 2020
by
Nicolas Fella
Browse files
Port a foreach
parent
2a81512f
Changes
1
Hide whitespace changes
Inline
Side-by-side
shell/containmentconfigview.cpp
View file @
773be564
...
...
@@ -82,11 +82,11 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::containmentActionConfigModel()
if
(
!
m_containmentActionConfigModel
)
{
m_containmentActionConfigModel
=
new
PlasmaQuick
::
ConfigModel
(
this
);
KPluginInfo
::
List
actions
=
Plasma
::
PluginLoader
::
self
()
->
listContainmentActionsInfo
(
QString
());
const
KPluginInfo
::
List
actions
=
Plasma
::
PluginLoader
::
self
()
->
listContainmentActionsInfo
(
QString
());
KPackage
::
Package
pkg
=
KPackage
::
PackageLoader
::
self
()
->
loadPackage
(
QStringLiteral
(
"Plasma/Generic"
));
for
each
(
const
KPluginInfo
&
info
,
actions
)
{
for
(
const
KPluginInfo
&
info
:
actions
)
{
pkg
.
setDefaultPackageRoot
(
QStandardPaths
::
locate
(
QStandardPaths
::
GenericDataLocation
,
QStringLiteral
(
PLASMA_RELATIVE_DATA_INSTALL_DIR
"/containmentactions"
),
QStandardPaths
::
LocateDirectory
));
m_containmentActionConfigModel
->
appendCategory
(
info
.
icon
(),
info
.
name
(),
pkg
.
filePath
(
"ui"
,
QStringLiteral
(
"config.qml"
)),
info
.
pluginName
());
}
...
...
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