Commit 9812eb90 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[kcms/ksplash] Remove unneeded KAboutData

The information is read from the JSON metadata
parent 8b6a32f1
......@@ -9,7 +9,6 @@
#include "kcm.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
......@@ -45,17 +44,14 @@ class SplashScreenSortModel : public QSortFilterProxyModel
}
};
KCMSplashScreen::KCMSplashScreen(QObject *parent, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, args)
KCMSplashScreen::KCMSplashScreen(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args)
: KQuickAddons::ManagedConfigModule(parent, metaData, args)
, m_data(new SplashScreenData(this))
, m_model(new QStandardItemModel(this))
{
qmlRegisterAnonymousType<SplashScreenSettings>("org.kde.plasma.splash.kcm", 0);
qmlRegisterAnonymousType<QStandardItemModel>("org.kde.plasma.splash.kcm", 0);
KAboutData *about = new KAboutData(QStringLiteral("kcm_splashscreen"), i18n("Splash Screen"), QStringLiteral("0.1"), QString(), KAboutLicense::LGPL);
about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org"));
setAboutData(about);
setButtons(Help | Apply | Default);
QHash<int, QByteArray> roles = m_model->roleNames();
......
......@@ -34,7 +34,7 @@ public:
PendingDeletionRole,
};
KCMSplashScreen(QObject *parent, const QVariantList &args);
KCMSplashScreen(QObject *parent, const KPluginMetaData &metaData, const QVariantList &args);
SplashScreenSettings *splashScreenSettings() const;
QAbstractProxyModel *splashSortedModel() 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