diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:29:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:29:42 -0600 |
commit | 159f7e147ac33c924b3ce9050c8f03cbc54916ee (patch) | |
tree | 38565fca708177609da9ddd523d49b9480b10de5 /kscreensaver/kxsconfig/kxsitem.cpp | |
parent | b1b005cf854aad925c2e64c3fc3ece582d4bffcf (diff) | |
download | tdeartwork-159f7e147ac33c924b3ce9050c8f03cbc54916ee.tar.gz tdeartwork-159f7e147ac33c924b3ce9050c8f03cbc54916ee.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kscreensaver/kxsconfig/kxsitem.cpp')
-rw-r--r-- | kscreensaver/kxsconfig/kxsitem.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kscreensaver/kxsconfig/kxsitem.cpp b/kscreensaver/kxsconfig/kxsitem.cpp index 7d9ab034..96e20758 100644 --- a/kscreensaver/kxsconfig/kxsitem.cpp +++ b/kscreensaver/kxsconfig/kxsitem.cpp @@ -24,7 +24,7 @@ #include <tqxml.h> //=========================================================================== -KXSConfigItem::KXSConfigItem(const TQString &name, KConfig &config) +KXSConfigItem::KXSConfigItem(const TQString &name, TDEConfig &config) : mName(name) { config.setGroup(name); @@ -38,7 +38,7 @@ KXSConfigItem::KXSConfigItem(const TQString &name, const TQXmlAttributes &attr ) } //=========================================================================== -KXSRangeItem::KXSRangeItem(const TQString &name, KConfig &config) +KXSRangeItem::KXSRangeItem(const TQString &name, TDEConfig &config) : KXSConfigItem(name, config), mInvert(false) { mMinimum = config.readNumEntry("Minimum"); @@ -68,21 +68,21 @@ TQString KXSRangeItem::command() return mSwitch.arg(mInvert?mMaximum-(mValue-mMinimum):mValue); } -void KXSRangeItem::read(KConfig &config) +void KXSRangeItem::read(TDEConfig &config) { config.setGroup(mName); if (config.hasKey("Value")) mValue = config.readNumEntry("Value"); } -void KXSRangeItem::save(KConfig &config) +void KXSRangeItem::save(TDEConfig &config) { config.setGroup(mName); config.writeEntry("Value", mValue); } //=========================================================================== -KXSDoubleRangeItem::KXSDoubleRangeItem(const TQString &name, KConfig &config) +KXSDoubleRangeItem::KXSDoubleRangeItem(const TQString &name, TDEConfig &config) : KXSConfigItem(name, config), mInvert(false) { mMinimum = config.readDoubleNumEntry("Minimum"); @@ -112,14 +112,14 @@ TQString KXSDoubleRangeItem::command() return mSwitch.arg(mInvert?mMaximum-(mValue-mMinimum):mValue); } -void KXSDoubleRangeItem::read(KConfig &config) +void KXSDoubleRangeItem::read(TDEConfig &config) { config.setGroup(mName); if (config.hasKey("Value")) mValue = config.readDoubleNumEntry("Value"); } -void KXSDoubleRangeItem::save(KConfig &config) +void KXSDoubleRangeItem::save(TDEConfig &config) { config.setGroup(mName); config.writeEntry("Value", mValue); @@ -127,7 +127,7 @@ void KXSDoubleRangeItem::save(KConfig &config) //=========================================================================== -KXSBoolItem::KXSBoolItem(const TQString &name, KConfig &config) +KXSBoolItem::KXSBoolItem(const TQString &name, TDEConfig &config) : KXSConfigItem(name, config) { mValue = config.readBoolEntry("Value"); @@ -148,21 +148,21 @@ TQString KXSBoolItem::command() return mValue ? mSwitchOn : mSwitchOff; } -void KXSBoolItem::read(KConfig &config) +void KXSBoolItem::read(TDEConfig &config) { config.setGroup(mName); if (config.hasKey("Value")) mValue = config.readBoolEntry("Value"); } -void KXSBoolItem::save(KConfig &config) +void KXSBoolItem::save(TDEConfig &config) { config.setGroup(mName); config.writeEntry("Value", mValue); } //=========================================================================== -KXSSelectItem::KXSSelectItem(const TQString &name, KConfig &config) +KXSSelectItem::KXSSelectItem(const TQString &name, TDEConfig &config) : KXSConfigItem(name, config) { mOptions = config.readListEntry("Options"); @@ -191,14 +191,14 @@ TQString KXSSelectItem::command() return (*it); } -void KXSSelectItem::read(KConfig &config) +void KXSSelectItem::read(TDEConfig &config) { config.setGroup(mName); if (config.hasKey("Value")) mValue = config.readNumEntry("Value"); } -void KXSSelectItem::save(KConfig &config) +void KXSSelectItem::save(TDEConfig &config) { config.setGroup(mName); config.writeEntry("Value", mValue); @@ -206,7 +206,7 @@ void KXSSelectItem::save(KConfig &config) //=========================================================================== -KXSStringItem::KXSStringItem(const TQString &name, KConfig &config) +KXSStringItem::KXSStringItem(const TQString &name, TDEConfig &config) : KXSConfigItem(name, config) { mValue = config.readEntry("Value"); @@ -236,14 +236,14 @@ TQString KXSStringItem::command() return ""; } -void KXSStringItem::read(KConfig &config) +void KXSStringItem::read(TDEConfig &config) { config.setGroup(mName); if (config.hasKey("Value")) mValue = config.readEntry("Value"); } -void KXSStringItem::save(KConfig &config) +void KXSStringItem::save(TDEConfig &config) { config.setGroup(mName); config.writeEntry("Value", mValue); |