summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/sensorsensor.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/sensorsensor.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/sensorsensor.cpp')
-rw-r--r--superkaramba/src/sensorsensor.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/superkaramba/src/sensorsensor.cpp b/superkaramba/src/sensorsensor.cpp
index 9ff0d47..ed6934e 100644
--- a/superkaramba/src/sensorsensor.cpp
+++ b/superkaramba/src/sensorsensor.cpp
@@ -8,7 +8,7 @@
* (at your option) any later version. *
***************************************************************************/
#include "sensorsensor.h"
-#include <qglobal.h>
+#include <tqglobal.h>
SensorSensor::SensorSensor(int interval, char tempUnit) : Sensor( interval )
{
@@ -29,10 +29,10 @@ SensorSensor::SensorSensor(int interval, char tempUnit) : Sensor( interval )
#endif
if(tempUnit == 'F')
extraParams = " -f";
- 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 * )));
// readValues();
}
@@ -45,18 +45,18 @@ SensorSensor::~SensorSensor()
void SensorSensor::receivedStdout(KProcess *, char *buffer, int len )
{
buffer[len] = 0;
- sensorResult += QString( QCString(buffer) );
+ sensorResult += TQString( TQCString(buffer) );
}
void SensorSensor::processExited(KProcess *)
{
- QStringList stringList = QStringList::split('\n',sensorResult);
+ TQStringList stringList = TQStringList::split('\n',sensorResult);
sensorResult = "";
- QStringList::Iterator it = stringList.begin();
+ TQStringList::Iterator it = stringList.begin();
#if defined __FreeBSD__ || defined(Q_OS_NETBSD)
- QRegExp rx( "^(\\S+)\\s+:\\s+[\\+\\-]?(\\d+\\.?\\d*)");
+ TQRegExp rx( "^(\\S+)\\s+:\\s+[\\+\\-]?(\\d+\\.?\\d*)");
#else
- QRegExp rx( "^(.+):\\s+[\\+\\-]?(\\d+\\.?\\d*)");
+ TQRegExp rx( "^(.+):\\s+[\\+\\-]?(\\d+\\.?\\d*)");
#endif
while( it != stringList.end())
{
@@ -69,12 +69,12 @@ void SensorSensor::processExited(KProcess *)
it++;
}
- QString format;
- QString type;
+ TQString format;
+ TQString type;
SensorParams *sp;
Meter *meter;
- QObjectListIt lit( *objList );
+ TQObjectListIt lit( *objList );
while (lit != 0)
{
sp = (SensorParams*)(*lit);
@@ -91,9 +91,9 @@ void SensorSensor::processExited(KProcess *)
}
#if defined __FreeBSD__ || defined(Q_OS_NETBSD)
- format.replace( QRegExp("%v", false), sensorMap[sensorMapBSD[type]]);
+ format.replace( TQRegExp("%v", false), sensorMap[sensorMapBSD[type]]);
#else
- format.replace( QRegExp("%v", false), sensorMap[type]);
+ format.replace( TQRegExp("%v", false), sensorMap[type]);
#endif
meter->setValue(format);
++lit;