Changeset View
Changeset View
Standalone View
Standalone View
kcms/ksplash/kcm.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | K_PLUGIN_FACTORY_WITH_JSON(KCMSplashScreenFactory, "kcm_splashscreen.json", registerPlugin<KCMSplashScreen>();) | 42 | K_PLUGIN_FACTORY_WITH_JSON(KCMSplashScreenFactory, "kcm_splashscreen.json", registerPlugin<KCMSplashScreen>();) | ||
43 | 43 | | |||
44 | KCMSplashScreen::KCMSplashScreen(QObject* parent, const QVariantList& args) | 44 | KCMSplashScreen::KCMSplashScreen(QObject* parent, const QVariantList& args) | ||
45 | : KQuickAddons::ConfigModule(parent, args) | 45 | : KQuickAddons::ConfigModule(parent, args) | ||
46 | , m_config(QStringLiteral("ksplashrc")) | 46 | , m_config(QStringLiteral("ksplashrc")) | ||
47 | , m_configGroup(m_config.group("KSplash")) | 47 | , m_configGroup(m_config.group("KSplash")) | ||
48 | { | 48 | { | ||
49 | qmlRegisterType<QStandardItemModel>(); | 49 | qmlRegisterType<QStandardItemModel>(); | ||
50 | KAboutData* about = new KAboutData(QStringLiteral("kcm_splashscreen"), i18n("Choose the splash screen theme"), | 50 | KAboutData* about = new KAboutData(QStringLiteral("kcm_splashscreen"), i18n("Splash Screen"), | ||
51 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | 51 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | ||
52 | about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org")); | 52 | about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org")); | ||
53 | setAboutData(about); | 53 | setAboutData(about); | ||
54 | setButtons(Help | Apply | Default); | 54 | setButtons(Help | Apply | Default); | ||
55 | 55 | | |||
56 | m_model = new QStandardItemModel(this); | 56 | m_model = new QStandardItemModel(this); | ||
57 | QHash<int, QByteArray> roles = m_model->roleNames(); | 57 | QHash<int, QByteArray> roles = m_model->roleNames(); | ||
58 | roles[PluginNameRole] = "pluginName"; | 58 | roles[PluginNameRole] = "pluginName"; | ||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |