Commit 5432c7ab authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/launchfeedback] Remove unneeded KAboutData

The information is read from the JSON metadata
parent 67b5cda8
Pipeline #215325 passed with stage
in 3 minutes and 47 seconds
......@@ -8,7 +8,6 @@
#include "launchfeedback.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
......@@ -17,21 +16,14 @@
K_PLUGIN_FACTORY_WITH_JSON(LaunchFactory, "kcm_launchfeedback.json", registerPlugin<LaunchFeedback>(); registerPlugin<LaunchFeedbackData>();)
LaunchFeedback::LaunchFeedback(QObject *parent, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, args)
LaunchFeedback::LaunchFeedback(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, metaData, args)
, m_data(new LaunchFeedbackData(this))
constexpr char uri[] = "org.kde.private.kcms.launchfeedback";
qmlRegisterUncreatableType<LaunchFeedback>(uri, 1, 0, "KCM", QStringLiteral("Cannot create instances of KCM"));
qmlRegisterAnonymousType<LaunchFeedbackSettings>(uri, 1);
KAboutData *about = new KAboutData(QStringLiteral("kcm_launchfeedback"),
i18n("Configure application launch feedback"),
setButtons(Apply | Default);
......@@ -29,7 +29,7 @@ public:
explicit LaunchFeedback(QObject *parent = nullptr, const QVariantList &list = QVariantList());
explicit LaunchFeedback(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~LaunchFeedback() override;
LaunchFeedbackSettings *launchFeedbackSettings() const;
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