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
b8e48356
Commit
b8e48356
authored
Nov 20, 2020
by
Nicolas Fella
Browse files
Port from listContainmentActionsInfo to listContainmentActionsMetaData
The former is deprecated.
parent
773be564
Changes
1
Hide whitespace changes
Inline
Side-by-side
shell/containmentconfigview.cpp
View file @
b8e48356
...
...
@@ -82,13 +82,13 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::containmentActionConfigModel()
if
(
!
m_containmentActionConfigModel
)
{
m_containmentActionConfigModel
=
new
PlasmaQuick
::
ConfigModel
(
this
);
const
KPluginInfo
::
List
actions
=
Plasma
::
PluginLoader
::
self
()
->
listContainmentActions
Info
(
QString
());
const
QVector
<
KPluginMetaData
>
actions
=
Plasma
::
PluginLoader
::
self
()
->
listContainmentActions
MetaData
(
QString
());
KPackage
::
Package
pkg
=
KPackage
::
PackageLoader
::
self
()
->
loadPackage
(
QStringLiteral
(
"Plasma/Generic"
));
for
(
const
KPlugin
Info
&
info
:
actions
)
{
for
(
const
KPlugin
MetaData
&
plugin
:
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"
)),
in
fo
.
plugin
Name
());
m_containmentActionConfigModel
->
appendCategory
(
plugin
.
iconName
(),
plugin
.
name
(),
pkg
.
filePath
(
"ui"
,
QStringLiteral
(
"config.qml"
)),
plug
in
.
plugin
Id
());
}
}
...
...
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