Commit a69ee3e0 authored by Nicolas Fella's avatar Nicolas Fella Committed by Nate Graham
Browse files

Remove unneeded KAboutData

The information is read from the JSON metadata
parent 6c4e0d66
Pipeline #215523 passed with stage
in 1 minute and 30 seconds
......@@ -18,7 +18,6 @@
#include <QApplication>
#include <QDir>
#include <KAboutData>
#include <kauth_version.h>
#if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0)
#include <KAuth/ExecuteJob>
......@@ -34,21 +33,11 @@
K_PLUGIN_FACTORY_WITH_JSON(KCMSddmFactory, "kcm_sddm.json", registerPlugin<SddmKcm>(); registerPlugin<SddmData>();)
SddmKcm::SddmKcm(QObject *parent, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, args)
SddmKcm::SddmKcm(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, metaData, args)
, m_data(new SddmData(this))
, m_themesModel(new ThemesModel(this))
{
KAboutData *aboutData = new KAboutData(QStringLiteral("kcm_sddm"), i18n("Login Screen (SDDM)"), QStringLiteral(PROJECT_VERSION));
aboutData->setShortDescription(i18n("Login screen using the SDDM"));
aboutData->setLicense(KAboutLicense::GPL_V2);
aboutData->setHomepage(QStringLiteral("https://projects.kde.org/projects/kde/workspace/sddm-kcm"));
aboutData->addAuthor(QStringLiteral("Reza Fatahilah Shah"), i18n("Author"), QStringLiteral("rshah0385@kireihana.com"));
aboutData->addAuthor(QStringLiteral("David Edmundson"), i18n("Author"), QStringLiteral("davidedmundson@kde.org"));
aboutData->addAuthor(QStringLiteral("David Redondo"), i18n("Author"), QStringLiteral("kde@david-redondo.de"));
setAboutData(aboutData);
setAuthActionName(QStringLiteral("org.kde.kcontrol.kcmsddm.save"));
qmlRegisterUncreatableType<ThemesModel>("org.kde.private.kcms.sddm", 1, 0, "ThemesModel", QStringLiteral("Cannot create ThemesModel"));
......
......@@ -19,7 +19,7 @@ class SddmKcm : public KQuickAddons::ManagedConfigModule
Q_PROPERTY(SddmSettings *sddmSettings READ sddmSettings CONSTANT)
Q_PROPERTY(ThemesModel *themesModel READ themesModel CONSTANT)
public:
explicit SddmKcm(QObject *parent, const QVariantList &args);
explicit SddmKcm(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
~SddmKcm() override;
Q_INVOKABLE static QString toLocalFile(const QUrl &url);
......
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