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 Desktop
Commits
c49d340d
Commit
c49d340d
authored
Mar 12, 2022
by
Fushan Wen
Browse files
kcms/runners: Port to `KNSWidgets:Button`
`KNS3::Button` is gone in KF6.
parent
0fb21fac
Pipeline
#148557
passed with stage
in 4 minutes and 50 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kcms/runners/CMakeLists.txt
View file @
c49d340d
...
...
@@ -29,7 +29,7 @@ target_link_libraries(kcm_plasmasearch
KF5::KCMUtils
KF5::Runner
KF5::I18n
KF5::NewStuff
KF5::NewStuff
Widgets
KF5::Activities
Qt::DBus
...
...
kcms/runners/kcm.cpp
View file @
c49d340d
...
...
@@ -13,7 +13,7 @@
#include
<KActivities/Consumer>
#include
<KActivities/Info>
#include
<KLocalizedString>
#include
<KNS
3
/Button>
#include
<KNS
Widgets
/Button>
#include
<KPluginFactory>
#include
<KPluginWidget>
#include
<KRunner/RunnerManager>
...
...
@@ -133,8 +133,8 @@ SearchConfigModule::SearchConfigModule(QWidget *parent, const QVariantList &args
layout
->
addWidget
(
m_pluginSelector
);
QHBoxLayout
*
downloadLayout
=
new
QHBoxLayout
;
KNS
3
::
Button
*
downloadButton
=
new
KNS
3
::
Button
(
i18n
(
"Get New Plugins…"
),
QStringLiteral
(
"krunner.knsrc"
),
this
);
connect
(
downloadButton
,
&
KNS
3
::
Button
::
dialogFinished
,
this
,
[
this
](
const
KNS3
::
Entry
::
List
&
changedEntries
)
{
KNS
Widgets
::
Button
*
downloadButton
=
new
KNS
Widgets
::
Button
(
i18n
(
"Get New Plugins…"
),
QStringLiteral
(
"krunner.knsrc"
),
this
);
connect
(
downloadButton
,
&
KNS
Widgets
::
Button
::
dialogFinished
,
this
,
[
this
](
const
QList
<
KNSCore
::
Entry
>
&
changedEntries
)
{
if
(
!
changedEntries
.
isEmpty
())
{
m_pluginSelector
->
clear
();
m_pluginSelector
->
addPlugins
(
Plasma
::
RunnerManager
::
runnerMetaDataList
(),
i18n
(
"Available Plugins"
));
...
...
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