Commit 4b2c0475 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

GIT_SILENT Port away from deprecated KRunner methods

We can not fully drop the usage of KPluginInfo, because the
KPluginSelector still depends on it.

In KRunner we would create the KPluginInfo objects the same way.
parent 9dbd0375
......@@ -146,15 +146,11 @@ SearchConfigModule::SearchConfigModule(QWidget *parent, const QVariantList &args
connect(downloadButton, &KNS3::Button::dialogFinished, this, [this](const KNS3::Entry::List &changedEntries) {
if (!changedEntries.isEmpty()) {
m_pluginSelector->clearPlugins();
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wdeprecated-declarations")
QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations")
m_pluginSelector->addPlugins(Plasma::RunnerManager::listRunnerInfo(),
m_pluginSelector->addPlugins(KPluginInfo::fromMetaData(Plasma::RunnerManager::runnerMetaDataList()),
KPluginSelector::ReadConfigFile,
i18n("Available Plugins"),
QString(),
m_config);
QT_WARNING_POP
}
});
downloadLayout->addStretch();
......@@ -181,7 +177,11 @@ void SearchConfigModule::load()
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wdeprecated-declarations")
QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations")
m_pluginSelector->addPlugins(Plasma::RunnerManager::listRunnerInfo(), KPluginSelector::ReadConfigFile, i18n("Available Plugins"), QString(), m_config);
m_pluginSelector->addPlugins(KPluginInfo::fromMetaData(Plasma::RunnerManager::runnerMetaDataList()),
KPluginSelector::ReadConfigFile,
i18n("Available Plugins"),
QString(),
m_config);
QT_WARNING_POP
m_pluginSelector->load();
......
......@@ -37,7 +37,7 @@ KRunnerData::KRunnerData(QObject *parent, const QVariantList &args)
bool KRunnerData::isDefaults() const
{
QList<KPluginInfo> runnerInfos = Plasma::RunnerManager::listRunnerInfo();
QList<KPluginInfo> runnerInfos = KPluginInfo::fromMetaData(Plasma::RunnerManager::runnerMetaDataList());
KConfigGroup cfgGroup(m_krunnerConfig, "Plugins");
for (auto &plugin : runnerInfos) {
plugin.load(cfgGroup);
......
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