summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib
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
commit9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch)
tree9f699684624f4e78e13e7dd2393a103cc6fa8274 /ksysguard/gui/SensorDisplayLib
parent341ad02235b9c85cd31782225181ed475b74eaa3 (diff)
downloadtdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz
tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib')
-rw-r--r--ksysguard/gui/SensorDisplayLib/LogFile.cc2
-rw-r--r--ksysguard/gui/SensorDisplayLib/ProcessList.cc8
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorDisplay.cc2
3 files changed, 6 insertions, 6 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/LogFile.cc b/ksysguard/gui/SensorDisplayLib/LogFile.cc
index bd74ff2c0..314690513 100644
--- a/ksysguard/gui/SensorDisplayLib/LogFile.cc
+++ b/ksysguard/gui/SensorDisplayLib/LogFile.cc
@@ -62,7 +62,7 @@ LogFile::addSensor(const TQString& hostName, const TQString& sensorName, const T
registerSensor(new KSGRD::SensorProperties(hostName, sensorName, sensorType, title));
- TQString sensorID = sensorName.right(sensorName.length() - (sensorName.tqfindRev("/") + 1));
+ TQString sensorID = sensorName.right(sensorName.length() - (sensorName.findRev("/") + 1));
sendRequest(sensors().tqat(0)->hostName(), TQString("logfile_register %1" ).arg(sensorID), 42);
diff --git a/ksysguard/gui/SensorDisplayLib/ProcessList.cc b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
index 342a6e5e5..0dc2faf53 100644
--- a/ksysguard/gui/SensorDisplayLib/ProcessList.cc
+++ b/ksysguard/gui/SensorDisplayLib/ProcessList.cc
@@ -486,7 +486,7 @@ ProcessList::buildList()
addProcess(p, pli);
- if (selectedPIds.tqfindIndex(p->pid()) != -1)
+ if (selectedPIds.findIndex(p->pid()) != -1)
pli->setSelected(true);
}
pl.removeFirst();
@@ -513,7 +513,7 @@ ProcessList::buildTree()
int pid = ps->pid();
pl.remove();
- if (selectedPIds.tqfindIndex(pid) != -1)
+ if (selectedPIds.findIndex(pid) != -1)
pli->setSelected(true);
// insert all child processes of current process
@@ -569,10 +569,10 @@ ProcessList::extendTree(TQPtrList<KSGRD::SensorPSLine>* pl, ProcessLVI* parent,
addProcess(ps, pli);
- if (selectedPIds.tqfindIndex(ps->pid()) != -1)
+ if (selectedPIds.findIndex(ps->pid()) != -1)
pli->setSelected(true);
- if (ps->ppid() != INIT_PID && closedSubTrees.tqfindIndex(ps->ppid()) != -1)
+ if (ps->ppid() != INIT_PID && closedSubTrees.findIndex(ps->ppid()) != -1)
parent->setOpen(false);
else
parent->setOpen(true);
diff --git a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
index 4d8c6eb37..34c448918 100644
--- a/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
+++ b/ksysguard/gui/SensorDisplayLib/SensorDisplay.cc
@@ -247,7 +247,7 @@ void SensorDisplay::updateWhatsThis()
void SensorDisplay::hosts( TQStringList& list )
{
for ( SensorProperties *s = mSensors.first(); s; s = mSensors.next() )
- if ( !list.tqcontains( s->hostName() ) )
+ if ( !list.contains( s->hostName() ) )
list.append( s->hostName() );
}