Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/kcm.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | 47 | | |||
48 | K_PLUGIN_FACTORY_WITH_JSON(KCMDesktopThemeFactory, "kcm_desktoptheme.json", registerPlugin<KCMDesktopTheme>();) | 48 | K_PLUGIN_FACTORY_WITH_JSON(KCMDesktopThemeFactory, "kcm_desktoptheme.json", registerPlugin<KCMDesktopTheme>();) | ||
49 | 49 | | |||
50 | KCMDesktopTheme::KCMDesktopTheme(QObject *parent, const QVariantList &args) | 50 | KCMDesktopTheme::KCMDesktopTheme(QObject *parent, const QVariantList &args) | ||
51 | : KQuickAddons::ConfigModule(parent, args) | 51 | : KQuickAddons::ConfigModule(parent, args) | ||
52 | , m_defaultTheme(new Plasma::Theme(this)) | 52 | , m_defaultTheme(new Plasma::Theme(this)) | ||
53 | , m_haveThemeExplorerInstalled(false) | 53 | , m_haveThemeExplorerInstalled(false) | ||
54 | { | 54 | { | ||
55 | //This flag seems to be needed in order for QQuickWidget to work | | |||
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 | | |||
58 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | | |||
59 | qmlRegisterType<QStandardItemModel>(); | 55 | qmlRegisterType<QStandardItemModel>(); | ||
60 | 56 | | |||
61 | KAboutData* about = new KAboutData(QStringLiteral("kcm_desktoptheme"), i18n("Plasma Style"), | 57 | KAboutData* about = new KAboutData(QStringLiteral("kcm_desktoptheme"), i18n("Plasma Style"), | ||
62 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | 58 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | ||
63 | about->addAuthor(i18n("David Rosca"), QString(), QStringLiteral("nowrep@gmail.com")); | 59 | about->addAuthor(i18n("David Rosca"), QString(), QStringLiteral("nowrep@gmail.com")); | ||
64 | setAboutData(about); | 60 | setAboutData(about); | ||
65 | setButtons(Apply | Default | Help); | 61 | setButtons(Apply | Default | Help); | ||
66 | 62 | | |||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |