diff options
Diffstat (limited to 'src/sensor.cpp')
| -rw-r--r-- | src/sensor.cpp | 16 |
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); |
