summaryrefslogtreecommitdiffstats
path: root/src/sensor.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 09:59:06 -0500
commit24857cad8e92c27bc7d7377549ae887adbeccc58 (patch)
treee8aa2577506c17c68286ec1b65ae31b89ea0556b /src/sensor.cpp
parentea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff)
downloadksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz
ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip
Convert to TDE R14 API
Diffstat (limited to 'src/sensor.cpp')
-rw-r--r--src/sensor.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sensor.cpp b/src/sensor.cpp
index 9ada02a..73c0829 100644
--- a/src/sensor.cpp
+++ b/src/sensor.cpp
@@ -15,14 +15,14 @@
* *
***************************************************************************/
-#include <kglobal.h>
+#include <tdeglobal.h>
#include "sensor.h"
#include "sensorslist.h"
-Sensor::Sensor(SensorsList *parent,const char *name): QObject(parent,name)
+Sensor::Sensor(SensorsList *parent,const char *name): TQObject(parent,name)
{
description = "";
compensation = 0;
@@ -39,7 +39,7 @@ Sensor::SensorClass Sensor::getClass()
return ((SensorsList *)parent())->getClass();
}
-QString Sensor::getPrintMask(bool addSufix)
+TQString Sensor::getPrintMask(bool addSufix)
{
return getSensorPrintMask(type, addSufix, ((SensorsList*)parent())->getTempScale() );
}
@@ -97,7 +97,7 @@ void Sensor::setMultiplicator(double value)
multiplicator= value;
}
-void Sensor::setDescription(const QString &str)
+void Sensor::setDescription(const TQString &str)
{
description= str;
}
@@ -118,10 +118,10 @@ void Sensor::setValue(double newVal, TempScale scale, bool ajust)
void Sensor::writeConfig()
{
-KConfig *ksConfig= KGlobal::config();
+TDEConfig *ksConfig= TDEGlobal::config();
if(ksConfig) {
- ksConfig->setGroup( QString(name()) );
+ ksConfig->setGroup( TQString(name()) );
ksConfig->writeEntry("description" ,description);
ksConfig->writeEntry("valueIdeal" ,valIdeal);
ksConfig->writeEntry("valueMax" ,valMax);
@@ -135,10 +135,10 @@ KConfig *ksConfig= KGlobal::config();
void Sensor::readConfig()
{
-KConfig *ksConfig= KGlobal::config();
+TDEConfig *ksConfig= TDEGlobal::config();
if(ksConfig) {
- ksConfig->setGroup( QString(name()) );
+ ksConfig->setGroup( TQString(name()) );
valMax = ksConfig->readDoubleNumEntry("valueMax" ,valMax);
valMin = ksConfig->readDoubleNumEntry("valueMin" ,valMin);
compensation = ksConfig->readDoubleNumEntry("compensation" ,compensation);