Commit c49d340d authored by Fushan Wen's avatar 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
......@@ -29,7 +29,7 @@ target_link_libraries(kcm_plasmasearch
KF5::KCMUtils
KF5::Runner
KF5::I18n
KF5::NewStuff
KF5::NewStuffWidgets
KF5::Activities
Qt::DBus
......
......@@ -13,7 +13,7 @@
#include <KActivities/Consumer>
#include <KActivities/Info>
#include <KLocalizedString>
#include <KNS3/Button>
#include <KNSWidgets/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;
KNS3::Button *downloadButton = new KNS3::Button(i18n("Get New Plugins…"), QStringLiteral("krunner.knsrc"), this);
connect(downloadButton, &KNS3::Button::dialogFinished, this, [this](const KNS3::Entry::List &changedEntries) {
KNSWidgets::Button *downloadButton = new KNSWidgets::Button(i18n("Get New Plugins…"), QStringLiteral("krunner.knsrc"), this);
connect(downloadButton, &KNSWidgets::Button::dialogFinished, this, [this](const QList<KNSCore::Entry> &changedEntries) {
if (!changedEntries.isEmpty()) {
m_pluginSelector->clear();
m_pluginSelector->addPlugins(Plasma::RunnerManager::runnerMetaDataList(), i18n("Available Plugins"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment