From 24857cad8e92c27bc7d7377549ae887adbeccc58 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 09:59:06 -0500 Subject: Convert to TDE R14 API --- src/sensor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sensor.cpp') 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 +#include #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); -- cgit v1.2.3