Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/kcm.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 50 | KCMDesktopTheme::KCMDesktopTheme(QObject *parent, const QVariantList &args) | |||
---|---|---|---|---|---|
53 | , m_haveThemeExplorerInstalled(false) | 53 | , m_haveThemeExplorerInstalled(false) | ||
54 | { | 54 | { | ||
55 | //This flag seems to be needed in order for QQuickWidget to work | 55 | //This flag seems to be needed in order for QQuickWidget to work | ||
56 | //see https://bugreports.qt-project.org/browse/QTBUG-40765 | 56 | //see https://bugreports.qt-project.org/browse/QTBUG-40765 | ||
57 | //also, it seems to work only if set in the kcm, not in the systemsettings' main | 57 | //also, it seems to work only if set in the kcm, not in the systemsettings' main | ||
58 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | 58 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | ||
59 | qmlRegisterType<QStandardItemModel>(); | 59 | qmlRegisterType<QStandardItemModel>(); | ||
60 | 60 | | |||
61 | KAboutData* about = new KAboutData(QStringLiteral("kcm_desktoptheme"), i18n("Choose the Plasma theme"), | 61 | KAboutData* about = new KAboutData(QStringLiteral("kcm_desktoptheme"), i18n("Plasma Theme Selection"), | ||
62 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | 62 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | ||
63 | about->addAuthor(i18n("David Rosca"), QString(), QStringLiteral("nowrep@gmail.com")); | 63 | about->addAuthor(i18n("David Rosca"), QString(), QStringLiteral("nowrep@gmail.com")); | ||
64 | setAboutData(about); | 64 | setAboutData(about); | ||
65 | setButtons(Apply | Default | Help); | 65 | setButtons(Apply | Default | Help); | ||
66 | 66 | | |||
67 | m_model = new QStandardItemModel(this); | 67 | m_model = new QStandardItemModel(this); | ||
68 | QHash<int, QByteArray> roles = m_model->roleNames(); | 68 | QHash<int, QByteArray> roles = m_model->roleNames(); | ||
69 | roles[PluginNameRole] = QByteArrayLiteral("pluginName"); | 69 | roles[PluginNameRole] = QByteArrayLiteral("pluginName"); | ||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |