summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/programsensor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /superkaramba/src/programsensor.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/programsensor.cpp')
-rw-r--r--superkaramba/src/programsensor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/superkaramba/src/programsensor.cpp b/superkaramba/src/programsensor.cpp
index a3bddc5..1118d2d 100644
--- a/superkaramba/src/programsensor.cpp
+++ b/superkaramba/src/programsensor.cpp
@@ -9,26 +9,26 @@
***************************************************************************/
#include "programsensor.h"
-#include <qstringlist.h>
-ProgramSensor::ProgramSensor(const QString &progName, int interval, QString encoding )
+#include <tqstringlist.h>
+ProgramSensor::ProgramSensor(const TQString &progName, int interval, TQString encoding )
: Sensor( interval )
{
if( !encoding.isEmpty())
{
- codec = QTextCodec::codecForName( encoding.ascii() );
+ codec = TQTextCodec::codecForName( encoding.ascii() );
if ( codec == 0)
- codec = QTextCodec::codecForLocale();
+ codec = TQTextCodec::codecForLocale();
}
else
- codec = QTextCodec::codecForLocale();
+ codec = TQTextCodec::codecForLocale();
programName = progName;
//update();
- connect(&ksp, SIGNAL(receivedStdout(KProcess *, char *, int )),
- this,SLOT(receivedStdout(KProcess *, char *, int )));
- connect(&ksp, SIGNAL(processExited(KProcess *)),
- this,SLOT(processExited( KProcess * )));
+ connect(&ksp, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )),
+ this,TQT_SLOT(receivedStdout(KProcess *, char *, int )));
+ connect(&ksp, TQT_SIGNAL(processExited(KProcess *)),
+ this,TQT_SLOT(processExited( KProcess * )));
}
ProgramSensor::~ProgramSensor()
@@ -37,7 +37,7 @@ ProgramSensor::~ProgramSensor()
void ProgramSensor::receivedStdout(KProcess *, char *buffer, int len)
{
buffer[len] = 0;
- sensorResult += codec->toUnicode( QCString(buffer) );
+ sensorResult += codec->toUnicode( TQCString(buffer) );
}
void ProgramSensor::processExited(KProcess *)
@@ -45,16 +45,16 @@ void ProgramSensor::processExited(KProcess *)
int lineNbr;
SensorParams *sp;
Meter *meter;
- QValueVector<QString> lines;
- QStringList stringList = QStringList::split('\n',sensorResult,true);
- QStringList::ConstIterator end( stringList.end() );
- for ( QStringList::ConstIterator it = stringList.begin(); it != end; ++it )
+ TQValueVector<TQString> lines;
+ TQStringList stringList = TQStringList::split('\n',sensorResult,true);
+ TQStringList::ConstIterator end( stringList.end() );
+ for ( TQStringList::ConstIterator it = stringList.begin(); it != end; ++it )
{
lines.push_back(*it);
}
int count = (int) lines.size();
- QObjectListIt it( *objList );
+ TQObjectListIt it( *objList );
while (it != 0)
{
sp = (SensorParams*)(*it);