Commit 67b5cda8 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/tablet] Remove unneeded KAboutData

parent 925aecd8
Pipeline #215315 passed with stage
in 5 minutes and 28 seconds
......@@ -7,7 +7,6 @@
#include "kcmtablet.h"
#include "devicesmodel.h"
#include "inputdevice.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
#include <QGuiApplication>
......@@ -119,8 +118,8 @@ public:
}
};
Tablet::Tablet(QObject *parent, const QVariantList &list)
: ManagedConfigModule(parent, list)
Tablet::Tablet(QObject *parent, const KPluginMetaData &metaData, const QVariantList &list)
: ManagedConfigModule(parent, metaData, list)
, m_devicesModel(new DevicesModel(this))
{
qmlRegisterType<OutputsModel>("org.kde.plasma.tablet.kcm", 1, 0, "OutputsModel");
......@@ -128,8 +127,6 @@ Tablet::Tablet(QObject *parent, const QVariantList &list)
qmlRegisterType<OutputsFittingModel>("org.kde.plasma.tablet.kcm", 1, 1, "OutputsFittingModel");
qmlRegisterAnonymousType<InputDevice>("org.kde.plasma.tablet.kcm", 1);
setAboutData(new KAboutData(QStringLiteral("kcm_tablet"), i18n("Tablet"), QStringLiteral("1.0"), i18n("Configure drawing tablets"), KAboutLicense::LGPL));
connect(m_devicesModel, &DevicesModel::needsSaveChanged, this, &Tablet::refreshNeedsSave);
}
......
......@@ -21,7 +21,7 @@ class Tablet : public KQuickAddons::ManagedConfigModule
Q_PROPERTY(DevicesModel *devicesModel READ devicesModel CONSTANT)
public:
explicit Tablet(QObject *parent = nullptr, const QVariantList &list = {});
explicit Tablet(QObject *parent, const KPluginMetaData &metaData, const QVariantList &list);
~Tablet() override;
void load() 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