Commit ddf2c892 authored by Alexander Lohnau's avatar Alexander Lohnau
Browse files

Remove plugin loading using keywords

This was deprecated in during the 5.24 development period. All KDE
consumers are ported away from it. Third parties will get meaningful
runtime messages which instruct them to register the plugins without keywords.

The create overloads which take keywords were already deprecated in KPluginFactory.
parent b696bf7d
Pipeline #122970 passed with stage
in 12 minutes and 57 seconds
......@@ -147,16 +147,7 @@ DecorationButton *PreviewBridge::createButton(KDecoration2::Decoration *decorati
if (!m_valid) {
return nullptr;
auto button = m_factory->create<KDecoration2::DecorationButton>(parent, QVariantList({QVariant::fromValue(type), QVariant::fromValue(decoration)}));
if (!button) {
button = m_factory->create<KDecoration2::DecorationButton>(QStringLiteral("button"), parent, QVariantList({QVariant::fromValue(type), QVariant::fromValue(decoration)}));
if (button) {
qWarning() << "Loading a KDecoration2::DecorationButton using the button keyword is deprecated in KWin 5.23, register the plugin without a keyword instead" << m_plugin;
return button;
return m_factory->create<KDecoration2::DecorationButton>(parent, QVariantList({QVariant::fromValue(type), QVariant::fromValue(decoration)}));
void PreviewBridge::configure(QQuickItem *ctx)
......@@ -177,18 +168,7 @@ void PreviewBridge::configure(QQuickItem *ctx)
args.insert(QStringLiteral("theme"), m_theme);
KCModule *kcm = nullptr;
kcm = m_factory->create<KCModule>(dialog, QVariantList({args}));
if (!kcm) {
kcm = m_factory->create<KCModule>(QStringLiteral("kcmodule"), dialog, QVariantList({args}));
if (kcm) {
qWarning() << "Loading a KCModule using the kcmodule keyword is deprecated in KWin 5.23, register the plugin without a keyword instead" << m_theme;
KCModule *kcm = m_factory->create<KCModule>(dialog, QVariantList({args}));
if (!kcm) {
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