From b8ecc6232b0b4644483b5d00a6cae04d6de2b857 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 May 2012 16:23:11 -0500 Subject: Fix kcontrol/style/kcmstyle.cpp broken in commit cfd4a7e4ea2276df469207aa5041cec412861493 --- kcontrol/style/kcmstyle.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kcontrol') diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp index df3811ab6..a797c4f61 100644 --- a/kcontrol/style/kcmstyle.cpp +++ b/kcontrol/style/kcmstyle.cpp @@ -73,21 +73,21 @@ // Danimo: Why do we use the old interface?! extern "C" { - _EXPORT KCModule *create_style(TQWidget *parent, const char*) + TDE_EXPORT KCModule *create_style(TQWidget *parent, const char*) { KGlobal::locale()->insertCatalogue("kcmstyle"); return new KCMStyle(parent, "kcmstyle"); } - _EXPORT void init_style() + TDE_EXPORT void init_style() { uint flags = KRdbExportQtSettings | KRdbExportQtColors | KRdbExportXftSettings; KConfig config("kcmdisplayrc", true /*readonly*/, false /*don't read kdeglobals etc.*/); config.setGroup("X11"); // This key is written by the "colors" module. - bool exportColors = config.readBoolEntry("exportColors", true); - if (exportColors) + bool exportTDEColors = config.readBoolEntry("exportTDEColors", true); + if (exportTDEColors) flags |= KRdbExportColors; runRdb( flags ); @@ -469,7 +469,7 @@ void KCMStyle::styleSpecificConfig() // Force re-rendering of the preview, to apply settings switchStyle(currentStyle(), true); - //For now, ask all apps to recreate their styles to apply the setitngs + //For now, ask all TDE apps to recreate their styles to apply the setitngs KIPC::sendMessageAll(KIPC::StyleChanged); // We call setStyleDirty here to make sure we force style re-creation @@ -560,7 +560,7 @@ void KCMStyle::save() // Save effects. KConfig config( "kdeglobals" ); - config.setGroup(""); + config.setGroup("TDE"); config.writeEntry( "EffectsEnabled", cbEnableEffects->isChecked()); int item = comboComboEffect->currentItem(); @@ -632,13 +632,13 @@ void KCMStyle::save() uint flags = KRdbExportQtSettings; KConfig kconfig("kcmdisplayrc", true /*readonly*/, false /*no globals*/); kconfig.setGroup("X11"); - bool exportColors = kconfig.readBoolEntry("exportColors", true); - if (exportColors) + bool exportTDEColors = kconfig.readBoolEntry("exportTDEColors", true); + if (exportTDEColors) flags |= KRdbExportColors; runRdb( flags ); } - // Now allow apps to reconfigure themselves. + // Now allow TDE apps to reconfigure themselves. if ( m_bStyleDirty ) KIPC::sendMessageAll(KIPC::StyleChanged); @@ -727,10 +727,10 @@ void KCMStyle::loadStyle( KConfig& config ) for (TQStringList::iterator it = list.begin(); it != list.end(); ++it) { KSimpleConfig config( *it, true ); - if ( !(config.hasGroup("") && config.hasGroup("Misc")) ) + if ( !(config.hasGroup("TDE") && config.hasGroup("Misc")) ) continue; - config.setGroup(""); + config.setGroup("TDE"); strWidgetStyle = config.readEntry("WidgetStyle"); if (strWidgetStyle.isNull()) @@ -893,7 +893,7 @@ void KCMStyle::setStyleRecursive(TQWidget* w, TQStyle* s) void KCMStyle::loadEffects( KConfig& config ) { // Load effects. - config.setGroup(""); + config.setGroup("TDE"); cbEnableEffects->setChecked( config.readBoolEntry( "EffectsEnabled", false) ); @@ -1009,7 +1009,7 @@ void KCMStyle::menuEffectChanged( bool enabled ) void KCMStyle::loadMisc( KConfig& config ) { - // 's Part via KConfig + // TDE's Part via KConfig config.setGroup("Toolbar style"); cbHoverButtons->setChecked(config.readBoolEntry("Highlighting", true)); cbTransparentToolbars->setChecked(config.readBoolEntry("TransparentMoving", true)); @@ -1024,7 +1024,7 @@ void KCMStyle::loadMisc( KConfig& config ) else comboToolbarIcons->setCurrentItem(0); - config.setGroup(""); + config.setGroup("TDE"); cbIconsOnButtons->setChecked(config.readBoolEntry("ShowIconsOnPushButtons", false)); cbEnableTooltips->setChecked(!config.readBoolEntry("EffectNoTooltip", false)); cbTearOffHandles->setChecked(config.readBoolEntry("InsertTearOffHandle", false)); @@ -1060,9 +1060,9 @@ void KCMStyle::addWhatsThis() TQWhatsThis::add( comboMenuEffect, i18n( "

Disable: do not use any menu effects.

\n" "

Animate: Do some animation.

\n" "

Fade: Fade in menus using alpha-blending.

\n" - "Make Translucent: Alpha-blend menus for a see-through effect. ( styles only)") ); + "Make Translucent: Alpha-blend menus for a see-through effect. (TDE styles only)") ); TQWhatsThis::add( cbMenuShadow, i18n( "When enabled, all popup menus will have a drop-shadow, otherwise " - "drop-shadows will not be displayed. At present, only styles can have this " + "drop-shadows will not be displayed. At present, only TDE styles can have this " "effect enabled.") ); TQWhatsThis::add( comboMenuEffectType, i18n( "

Software Tint: Alpha-blend using a flat color.

\n" "

Software Blend: Alpha-blend using an image.

\n" -- cgit v1.2.3