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