summaryrefslogtreecommitdiffstats
path: root/src/configuredialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitfe9b5d95c9a717fea16685ed7c175e1659d7127c (patch)
treed25f548cddafc13b0336fd1a900ce01a62c4c88c /src/configuredialog.cpp
parent3cdd44798b7565639ca08dc051fbe21e41d546fa (diff)
downloadkpowersave-fe9b5d95c9a717fea16685ed7c175e1659d7127c.tar.gz
kpowersave-fe9b5d95c9a717fea16685ed7c175e1659d7127c.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/configuredialog.cpp')
-rw-r--r--src/configuredialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/configuredialog.cpp b/src/configuredialog.cpp
index 3c0387b..7091b11 100644
--- a/src/configuredialog.cpp
+++ b/src/configuredialog.cpp
@@ -205,7 +205,7 @@ void ConfigureDialog::selectScheme (TQString _scheme){
// select the current scheme in the listbox
if(!_scheme.isEmpty()) {
- int pos = schemes.tqfindIndex(_scheme);
+ int pos = schemes.findIndex(_scheme);
if(pos > -1) {
listBox_schemes->setCurrentItem(pos);
currentScheme = pos;
@@ -451,7 +451,7 @@ void ConfigureDialog::setConfigToDialog( int schemeID ){
// set autosuspend related settings
TQString _action = kconfig->readEntry("autoInactiveAction", "NULL");
if( _action != "NULL") {
- int _index = actions.tqfindIndex(_action);
+ int _index = actions.findIndex(_action);
if( _index != -1) {
cB_autoInactivity->setCurrentItem( _index );
cB_autoInactivity_activated( _index );
@@ -473,7 +473,7 @@ void ConfigureDialog::setConfigToDialog( int schemeID ){
kconfig->setGroup("default-scheme");
_action = kconfig->readEntry("autoInactiveAction", "NULL");
if(_action != "NULL") {
- int _index = actions.tqfindIndex(_action);
+ int _index = actions.findIndex(_action);
if( _index != -1) {
cB_autoInactivity->setCurrentItem( _index );
tL_autoInactivity_After->setEnabled(true);
@@ -734,8 +734,8 @@ void ConfigureDialog::setGeneralSettings() {
// default scheme tab:
TQString _ac_scheme = kconfig->readEntry( "ac_scheme", "Performance");
TQString _bat_scheme = kconfig->readEntry( "battery_scheme", "Powersave");
- cB_acScheme->setCurrentItem(schemes.tqfindIndex(_ac_scheme));
- cB_batteryScheme->setCurrentItem(schemes.tqfindIndex(_bat_scheme));
+ cB_acScheme->setCurrentItem(schemes.findIndex(_ac_scheme));
+ cB_batteryScheme->setCurrentItem(schemes.findIndex(_bat_scheme));
kdDebugFuncOut(trace);
}
@@ -1042,7 +1042,7 @@ void ConfigureDialog::pB_newScheme_clicked(){
} else {
_error = TQString();
if (!_new.isEmpty()) {
- if ( schemes.tqcontains(_new))
+ if ( schemes.contains(_new))
_error = i18n("Error: A scheme with this name already exist.\n");
else
_end = true;
@@ -1780,10 +1780,10 @@ TQString ConfigureDialog::mapActionToDescription( TQString action ) {
} else if (action.startsWith("LOGOUT_DIALOG")) {
ret = i18n("Logout Dialog");
} else if (action.startsWith("SUSPEND2DISK")) {
- if (actions.tqcontains("Suspend to Disk"))
+ if (actions.contains("Suspend to Disk"))
ret = i18n("Suspend to Disk");
} else if (action.startsWith("SUSPEND2RAM")) {
- if (actions.tqcontains("Suspend to RAM"))
+ if (actions.contains("Suspend to RAM"))
ret = i18n("Suspend to RAM");
} else if (action.startsWith("CPUFRETQ_POWERSAVE")) {
if (hwinfo->supportCPUFreq())