]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Load trash KCM using KPluginMetaData
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 11 Nov 2021 18:10:44 +0000 (19:10 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 1 Dec 2021 22:10:58 +0000 (22:10 +0000)
The QString overload uses KServiceTypeTrader, which is deprecated

src/settings/trash/trashsettingspage.cpp

index df627fa1c7f2a1fcf0ddbf8dea1a62173cec5855..a2e54531e954e17a9bfa275c7af6a32b513ce384 100644 (file)
@@ -15,7 +15,7 @@ TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
 {
     QFormLayout* topLayout = new QFormLayout(this);
 
-    m_proxy = new KCModuleProxy(QStringLiteral("kcmtrash"));
+    m_proxy = new KCModuleProxy(KPluginMetaData(QStringLiteral("kcm_trash")));
     topLayout->addRow(m_proxy);
 
     loadSettings();