diff options
Diffstat (limited to 'tderandr/libtderandr.cpp')
-rw-r--r-- | tderandr/libtderandr.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tderandr/libtderandr.cpp b/tderandr/libtderandr.cpp index 1900f8503..94828e434 100644 --- a/tderandr/libtderandr.cpp +++ b/tderandr/libtderandr.cpp @@ -80,14 +80,14 @@ TQString capitalizeString(TQString in) { } TQString KRandrSimpleAPI::getIccFileName(TQString profileName, TQString screenName, TQString kde_confdir) { - KSimpleConfig *t_config = NULL; - KSimpleConfig *t_systemconfig = NULL; + TDESimpleConfig *t_config = NULL; + TDESimpleConfig *t_systemconfig = NULL; int t_numberOfProfiles; TQStringList t_cfgProfiles; TQString retval; if ((profileName != NULL) && (profileName != "")) { - t_config = new KSimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); + t_config = new TDESimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); t_config->setGroup(NULL); if (t_config->readBoolEntry("EnableICC", false) == true) { t_config->setGroup(profileName); @@ -99,7 +99,7 @@ TQString KRandrSimpleAPI::getIccFileName(TQString profileName, TQString screenNa delete t_config; } else { - t_systemconfig = new KSimpleConfig( kde_confdir + TQString("/kicc/kiccconfigrc") ); + t_systemconfig = new TDESimpleConfig( kde_confdir + TQString("/kicc/kiccconfigrc") ); t_systemconfig->setGroup(NULL); if (t_systemconfig->readBoolEntry("EnableICC", false) == true) { retval = t_systemconfig->readEntry("ICCFile"); @@ -266,12 +266,12 @@ TQString KRandrSimpleAPI::applyIccConfiguration(TQString profileName, TQString k Display *randr_display; ScreenInfo *randr_screen_info; XRROutputInfo *output_info; - KSimpleConfig *t_config; + TDESimpleConfig *t_config; int screenNumber = 0; TQString errorstr = ""; - t_config = new KSimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); + t_config = new TDESimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); // Find all screens if (isValid() == true) { @@ -373,9 +373,9 @@ TQByteArray KRandrSimpleAPI::getEDID(int card, TQString displayname) { TQString KRandrSimpleAPI::getCurrentProfile () { TQString profileName; - KSimpleConfig *t_config; + TDESimpleConfig *t_config; - t_config = new KSimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); + t_config = new TDESimpleConfig( TQString::fromLatin1( "kiccconfigrc" )); profileName = t_config->readEntry("CurrentProfile"); delete t_config; return profileName; @@ -459,7 +459,7 @@ void KRandrSimpleAPI::saveDisplayConfiguration(bool enable, bool applyonstart, T filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); display_config->setGroup("General"); display_config->writeEntry("EnableDisplayControl", enable); display_config->writeEntry("ApplySettingsOnStart", applyonstart); @@ -473,7 +473,7 @@ void KRandrSimpleAPI::saveDisplayConfiguration(bool enable, bool applyonstart, T } filename.prepend(kde_confdir.append("/displayconfig/")); - display_config = new KSimpleConfig( filename ); + display_config = new TDESimpleConfig( filename ); i=0; SingleScreenData *screendata; @@ -561,7 +561,7 @@ TQPtrList<SingleScreenData> KRandrSimpleAPI::loadDisplayConfiguration(TQString p } filename.prepend(kde_confdir.append("/displayconfig/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); TQStringList grouplist = display_config->groupList(); SingleScreenData *screendata; @@ -962,7 +962,7 @@ HotPlugRulesList KRandrSimpleAPI::getHotplugRules(TQString kde_confdir) { filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); TQStringList grouplist = display_config->groupList(); for ( TQStringList::Iterator it = grouplist.begin(); it != grouplist.end(); ++it ) { @@ -987,7 +987,7 @@ void KRandrSimpleAPI::saveHotplugRules(HotPlugRulesList rules, TQString kde_conf filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); TQStringList grouplist = display_config->groupList(); for ( TQStringList::Iterator it = grouplist.begin(); it != grouplist.end(); ++it ) { if (!(*it).startsWith("Hotplug-Rule")) { @@ -1011,7 +1011,7 @@ void KRandrSimpleAPI::saveHotplugRules(HotPlugRulesList rules, TQString kde_conf bool KRandrSimpleAPI::getDisplayConfigurationEnabled(TQString kde_confdir) { TQString filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); display_config->setGroup("General"); bool enabled = display_config->readBoolEntry("EnableDisplayControl", false); delete display_config; @@ -1022,7 +1022,7 @@ bool KRandrSimpleAPI::getDisplayConfigurationEnabled(TQString kde_confdir) { bool KRandrSimpleAPI::getDisplayConfigurationStartupAutoApplyEnabled(TQString kde_confdir) { TQString filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); display_config->setGroup("General"); bool applyonstart = display_config->readBoolEntry("ApplySettingsOnStart", false); delete display_config; @@ -1033,7 +1033,7 @@ bool KRandrSimpleAPI::getDisplayConfigurationStartupAutoApplyEnabled(TQString kd TQString KRandrSimpleAPI::getDisplayConfigurationStartupAutoApplyName(TQString kde_confdir) { TQString filename = "displayglobals"; filename.prepend(kde_confdir.append("/")); - KSimpleConfig* display_config = new KSimpleConfig( filename ); + TDESimpleConfig* display_config = new TDESimpleConfig( filename ); display_config->setGroup("General"); TQString profilename = display_config->readEntry("StartupProfileName", ""); delete display_config; |