summaryrefslogtreecommitdiffstats
path: root/kcontrol
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-27 16:23:11 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-27 16:23:11 -0500
commitb8ecc6232b0b4644483b5d00a6cae04d6de2b857 (patch)
tree68aad622227e79fcffc6ad5f58c1b891ba3c5a70 /kcontrol
parente37899bcc3f75c9e314df74fee7cd92167f1c4d8 (diff)
downloadtdebase-b8ecc6232b0b4644483b5d00a6cae04d6de2b857.tar.gz
tdebase-b8ecc6232b0b4644483b5d00a6cae04d6de2b857.zip
Fix kcontrol/style/kcmstyle.cpp broken in commit cfd4a7e4ea2276df469207aa5041cec412861493
Diffstat (limited to 'kcontrol')
-rw-r--r--kcontrol/style/kcmstyle.cpp32
1 files changed, 16 insertions, 16 deletions
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( "<p><b>Disable: </b>do not use any menu effects.</p>\n"
"<p><b>Animate: </b>Do some animation.</p>\n"
"<p><b>Fade: </b>Fade in menus using alpha-blending.</p>\n"
- "<b>Make Translucent: </b>Alpha-blend menus for a see-through effect. ( styles only)") );
+ "<b>Make Translucent: </b>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( "<p><b>Software Tint: </b>Alpha-blend using a flat color.</p>\n"
"<p><b>Software Blend: </b>Alpha-blend using an image.</p>\n"