Changeset View
Changeset View
Standalone View
Standalone View
kcms/style/kcmstyle.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | #include "gtkpage.h" | 59 | #include "gtkpage.h" | ||
60 | 60 | | |||
61 | K_PLUGIN_FACTORY_WITH_JSON(KCMStyleFactory, "kcm_style.json", registerPlugin<KCMStyle>();) | 61 | K_PLUGIN_FACTORY_WITH_JSON(KCMStyleFactory, "kcm_style.json", registerPlugin<KCMStyle>();) | ||
62 | 62 | | |||
63 | extern "C" | 63 | extern "C" | ||
64 | { | 64 | { | ||
65 | Q_DECL_EXPORT void kcminit_style() | 65 | Q_DECL_EXPORT void kcminit_style() | ||
66 | { | 66 | { | ||
67 | uint flags = KRdbExportQtSettings | KRdbExportGtkColors | KRdbExportQtColors | KRdbExportXftSettings | KRdbExportGtkTheme; | 67 | uint flags = KRdbExportQtSettings | KRdbExportQtColors | KRdbExportXftSettings | KRdbExportGtkTheme; | ||
68 | KConfig _config( QStringLiteral("kcmdisplayrc"), KConfig::NoGlobals ); | 68 | KConfig _config( QStringLiteral("kcmdisplayrc"), KConfig::NoGlobals ); | ||
69 | KConfigGroup config(&_config, "X11"); | 69 | KConfigGroup config(&_config, "X11"); | ||
70 | 70 | | |||
71 | // This key is written by the "colors" module. | 71 | // This key is written by the "colors" module. | ||
72 | bool exportKDEColors = config.readEntry("exportKDEColors", true); | 72 | bool exportKDEColors = config.readEntry("exportKDEColors", true); | ||
73 | if (exportKDEColors) { | 73 | if (exportKDEColors) { | ||
74 | flags |= KRdbExportColors; | 74 | flags |= KRdbExportColors; | ||
75 | } | 75 | } | ||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |