Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/kcm.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 56 | KCMLookandFeel::KCMLookandFeel(QObject* parent, const QVariantList& args) | |||
---|---|---|---|---|---|
62 | , m_applyIcons(true) | 62 | , m_applyIcons(true) | ||
63 | , m_applyPlasmaTheme(true) | 63 | , m_applyPlasmaTheme(true) | ||
64 | , m_applyCursors(true) | 64 | , m_applyCursors(true) | ||
65 | , m_applyWindowSwitcher(true) | 65 | , m_applyWindowSwitcher(true) | ||
66 | , m_applyDesktopSwitcher(true) | 66 | , m_applyDesktopSwitcher(true) | ||
67 | , m_resetDefaultLayout(false) | 67 | , m_resetDefaultLayout(false) | ||
68 | , m_applyWindowDecoration(true) | 68 | , m_applyWindowDecoration(true) | ||
69 | { | 69 | { | ||
70 | //This flag seems to be needed in order for QQuickWidget to work | | |||
71 | //see https://bugreports.qt-project.org/browse/QTBUG-40765 | | |||
72 | //also, it seems to work only if set in the kcm, not in the systemsettings' main | | |||
73 | qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); | | |||
74 | qmlRegisterType<QStandardItemModel>(); | 70 | qmlRegisterType<QStandardItemModel>(); | ||
75 | qmlRegisterType<KCMLookandFeel>(); | 71 | qmlRegisterType<KCMLookandFeel>(); | ||
76 | KAboutData* about = new KAboutData(QStringLiteral("kcm_lookandfeel"), i18n("Global Theme"), | 72 | KAboutData* about = new KAboutData(QStringLiteral("kcm_lookandfeel"), i18n("Global Theme"), | ||
77 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | 73 | QStringLiteral("0.1"), QString(), KAboutLicense::LGPL); | ||
78 | about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org")); | 74 | about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org")); | ||
79 | setAboutData(about); | 75 | setAboutData(about); | ||
80 | setButtons(Apply | Default); | 76 | setButtons(Apply | Default); | ||
81 | 77 | | |||
▲ Show 20 Lines • Show All 753 Lines • Show Last 20 Lines |