Changeset View
Changeset View
Standalone View
Standalone View
kcms/style/kcmstyle.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | |||||
91 | K_PLUGIN_FACTORY(KCMStyleFactory, registerPlugin<KCMStyle>();) | 91 | K_PLUGIN_FACTORY(KCMStyleFactory, registerPlugin<KCMStyle>();) | ||
92 | K_EXPORT_PLUGIN(KCMStyleFactory("kcmstyle")) | 92 | K_EXPORT_PLUGIN(KCMStyleFactory("kcmstyle")) | ||
93 | 93 | | |||
94 | 94 | | |||
95 | extern "C" | 95 | extern "C" | ||
96 | { | 96 | { | ||
97 | Q_DECL_EXPORT void kcminit_style() | 97 | Q_DECL_EXPORT void kcminit_style() | ||
98 | { | 98 | { | ||
99 | uint flags = KRdbExportQtSettings | KRdbExportQtColors | KRdbExportXftSettings | KRdbExportGtkTheme; | 99 | uint flags = KRdbExportQtSettings | KRdbExportGtkColors | KRdbExportQtColors | KRdbExportXftSettings | KRdbExportGtkTheme; | ||
100 | KConfig _config( QStringLiteral("kcmdisplayrc"), KConfig::NoGlobals ); | 100 | KConfig _config( QStringLiteral("kcmdisplayrc"), KConfig::NoGlobals ); | ||
101 | KConfigGroup config(&_config, "X11"); | 101 | KConfigGroup config(&_config, "X11"); | ||
102 | 102 | | |||
103 | // This key is written by the "colors" module. | 103 | // This key is written by the "colors" module. | ||
104 | bool exportKDEColors = config.readEntry("exportKDEColors", true); | 104 | bool exportKDEColors = config.readEntry("exportKDEColors", true); | ||
105 | if (exportKDEColors) | 105 | if (exportKDEColors) | ||
106 | flags |= KRdbExportColors; | 106 | flags |= KRdbExportColors; | ||
107 | runRdb( flags ); | 107 | runRdb( flags ); | ||
▲ Show 20 Lines • Show All 609 Lines • Show Last 20 Lines |