Commit 2c078c52 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/workspaceoptions] Remove unneeded KAboutData

The information is read from the JSON metadata
parent 85a9ed90
Pipeline #215348 passed with stage
in 2 minutes and 33 seconds
......@@ -7,7 +7,6 @@
#include "workspaceoptions.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
#include <KWindowSystem>
......@@ -22,23 +21,14 @@
K_PLUGIN_FACTORY_WITH_JSON(KCMWorkspaceOptionsFactory, "kcm_workspace.json", registerPlugin<KCMWorkspaceOptions>(); registerPlugin<WorkspaceOptionsData>();)
KCMWorkspaceOptions::KCMWorkspaceOptions(QObject *parent, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, args)
KCMWorkspaceOptions::KCMWorkspaceOptions(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, metaData, args)
, m_data(new WorkspaceOptionsData(this))
{
qmlRegisterAnonymousType<WorkspaceOptionsGlobalsSettings>("org.kde.plasma.workspaceoptions.kcm", 0);
qmlRegisterAnonymousType<WorkspaceOptionsPlasmaSettings>("org.kde.plasma.workspaceoptions.kcm", 0);
qmlRegisterAnonymousType<WorkspaceOptionsKwinSettings>("org.kde.plasma.workspaceoptions.kcm", 0);
KAboutData *about = new KAboutData(QStringLiteral("kcm_workspace"),
i18n("General Behavior"),
QStringLiteral("1.1"),
i18n("System Settings module for configuring general workspace behavior."),
KAboutLicense::GPL);
about->addAuthor(i18n("Furkan Tokac"), QString(), QStringLiteral("furkantokac34@gmail.com"));
setAboutData(about);
setButtons(Apply | Default | Help);
}
......
......@@ -24,7 +24,7 @@ class KCMWorkspaceOptions : public KQuickAddons::ManagedConfigModule
Q_PROPERTY(bool isWayland READ isWayland CONSTANT)
public:
KCMWorkspaceOptions(QObject *parent, const QVariantList &args);
KCMWorkspaceOptions(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~KCMWorkspaceOptions() override
{
}
......
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