summaryrefslogtreecommitdiffstats
path: root/kcontrol/style
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:30:47 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:30:47 -0600
commitcc74f360bb40da3d79f58048f8e8611804980aa6 (patch)
treec4385d2c16b904757b1c8bb998a4aec6993373f7 /kcontrol/style
parent79b21d47bce1ee428affc97534cd8b257232a871 (diff)
downloadtdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.tar.gz
tdebase-cc74f360bb40da3d79f58048f8e8611804980aa6.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kcontrol/style')
-rw-r--r--kcontrol/style/kcmstyle.cpp20
-rw-r--r--kcontrol/style/kcmstyle.h8
-rw-r--r--kcontrol/style/main.cpp2
3 files changed, 15 insertions, 15 deletions
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp
index 3a2025589..f540d7e75 100644
--- a/kcontrol/style/kcmstyle.cpp
+++ b/kcontrol/style/kcmstyle.cpp
@@ -73,7 +73,7 @@
// Danimo: Why do we use the old interface?!
extern "C"
{
- KDE_EXPORT KCModule *create_style(TQWidget *parent, const char*)
+ KDE_EXPORT TDECModule *create_style(TQWidget *parent, const char*)
{
TDEGlobal::locale()->insertCatalogue("kcmstyle");
return new KCMStyle(parent, "kcmstyle");
@@ -82,7 +82,7 @@ extern "C"
KDE_EXPORT void init_style()
{
uint flags = KRdbExportQtSettings | KRdbExportQtColors | KRdbExportXftSettings;
- KConfig config("kcmdisplayrc", true /*readonly*/, false /*don't read kdeglobals etc.*/);
+ TDEConfig config("kcmdisplayrc", true /*readonly*/, false /*don't read kdeglobals etc.*/);
config.setGroup("X11");
// This key is written by the "colors" module.
@@ -116,7 +116,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_kcmstyle, GeneralFactory )
KCMStyle::KCMStyle( TQWidget* parent, const char* name )
- : KCModule( parent, name ), appliedStyle(NULL)
+ : TDECModule( parent, name ), appliedStyle(NULL)
{
setQuickHelp( i18n("<h1>Style</h1>"
"This module allows you to modify the visual appearance "
@@ -489,7 +489,7 @@ void KCMStyle::load()
void KCMStyle::load(bool useDefaults)
{
- KConfig config( "kdeglobals", true, false );
+ TDEConfig config( "kdeglobals", true, false );
config.setReadDefaults( useDefaults );
@@ -562,7 +562,7 @@ void KCMStyle::save()
// Save effects.
- KConfig config( "kdeglobals" );
+ TDEConfig config( "kdeglobals" );
config.setGroup("KDE");
config.writeEntry( "EffectsEnabled", cbEnableEffects->isChecked());
@@ -634,7 +634,7 @@ void KCMStyle::save()
if (m_bStyleDirty | m_bEffectsDirty) // Export only if necessary
{
uint flags = KRdbExportQtSettings;
- KConfig kconfig("kcmdisplayrc", true /*readonly*/, false /*no globals*/);
+ TDEConfig kconfig("kcmdisplayrc", true /*readonly*/, false /*no globals*/);
kconfig.setGroup("X11");
bool exportKDEColors = kconfig.readBoolEntry("exportKDEColors", true);
if (exportKDEColors)
@@ -717,7 +717,7 @@ void KCMStyle::setStyleDirty()
// All the Style Switching / Preview stuff
// ----------------------------------------------------------------
-void KCMStyle::loadStyle( KConfig& config )
+void KCMStyle::loadStyle( TDEConfig& config )
{
cbStyle->clear();
@@ -894,7 +894,7 @@ void KCMStyle::setStyleRecursive(TQWidget* w, TQStyle* s)
// All the Effects stuff
// ----------------------------------------------------------------
-void KCMStyle::loadEffects( KConfig& config )
+void KCMStyle::loadEffects( TDEConfig& config )
{
// Load effects.
config.setGroup("KDE");
@@ -1011,9 +1011,9 @@ void KCMStyle::menuEffectChanged( bool enabled )
// All the Miscellaneous stuff
// ----------------------------------------------------------------
-void KCMStyle::loadMisc( KConfig& config )
+void KCMStyle::loadMisc( TDEConfig& config )
{
- // TDE's Part via KConfig
+ // TDE's Part via TDEConfig
config.setGroup("Toolbar style");
cbHoverButtons->setChecked(config.readBoolEntry("Highlighting", true));
cbTransparentToolbars->setChecked(config.readBoolEntry("TransparentMoving", true));
diff --git a/kcontrol/style/kcmstyle.h b/kcontrol/style/kcmstyle.h
index ac3d56cb3..44fb68c0e 100644
--- a/kcontrol/style/kcmstyle.h
+++ b/kcontrol/style/kcmstyle.h
@@ -59,7 +59,7 @@ struct StyleEntry {
bool hidden;
};
-class KCMStyle : public KCModule
+class KCMStyle : public TDECModule
{
Q_OBJECT
@@ -77,9 +77,9 @@ protected:
void switchStyle(const TQString& styleName, bool force = false);
void setStyleRecursive(TQWidget* w, TQStyle* s);
- void loadStyle( KConfig& config );
- void loadEffects( KConfig& config );
- void loadMisc( KConfig& config );
+ void loadStyle( TDEConfig& config );
+ void loadEffects( TDEConfig& config );
+ void loadMisc( TDEConfig& config );
void addWhatsThis();
protected slots:
diff --git a/kcontrol/style/main.cpp b/kcontrol/style/main.cpp
index 252cee0fd..334229f4e 100644
--- a/kcontrol/style/main.cpp
+++ b/kcontrol/style/main.cpp
@@ -5,7 +5,7 @@
#include "kcmstyle.h"
extern "C" {
- KCModule *create_style(TQWidget *parent, const char *) {
+ TDECModule *create_style(TQWidget *parent, const char *) {
return new KCMStyle(parent, "kcmstyle");
}
}