diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-07-24 09:59:06 -0500 |
| commit | 24857cad8e92c27bc7d7377549ae887adbeccc58 (patch) | |
| tree | e8aa2577506c17c68286ec1b65ae31b89ea0556b /src/sensorslist.cpp | |
| parent | ea3a9effca9bebfe18bfb7546da619ecbbb121f3 (diff) | |
| download | ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.tar.gz ksensors-24857cad8e92c27bc7d7377549ae887adbeccc58.zip | |
Convert to TDE R14 API
Diffstat (limited to 'src/sensorslist.cpp')
| -rw-r--r-- | src/sensorslist.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sensorslist.cpp b/src/sensorslist.cpp index 57e6951..d5921b3 100644 --- a/src/sensorslist.cpp +++ b/src/sensorslist.cpp @@ -17,10 +17,10 @@ #include "sensorslist.h" -#include <kglobal.h> +#include <tdeglobal.h> -SensorsList::SensorsList(QObject *parent, const char * name) - : QObject(parent,name) +SensorsList::SensorsList(TQObject *parent, const char * name) + : TQObject(parent,name) { tempScale= Sensor::dgCelsius; updateInterval= 5000; @@ -56,7 +56,7 @@ void SensorsList::setTempScale(Sensor::TempScale scale) { if(tempScale!=scale) { tempScale= scale; - QObjectList *list= getSensors(); + TQObjectList *list= getSensors(); if(list) for(Sensor *sensor=(Sensor*)list->first(); sensor!=0; sensor= (Sensor*)list->next()) if(sensor->getType()==Sensor::lmTemp) @@ -67,10 +67,10 @@ void SensorsList::setTempScale(Sensor::TempScale scale) void SensorsList::readConfig() { - KConfig *ksConfig= KGlobal::config(); + TDEConfig *ksConfig= TDEGlobal::config(); ksConfig->setGroup( name() ); setUpdateInterval(ksConfig->readNumEntry("UpdateInterval",5)); - QString str= ksConfig->readEntry("Scale" ,"C"); + TQString str= ksConfig->readEntry("Scale" ,"C"); Sensor::TempScale tempScale; if(str=="F") tempScale= Sensor::dgFahrenheit; else if(str=="K") tempScale= Sensor::dgKelvin; @@ -81,10 +81,10 @@ void SensorsList::readConfig() void SensorsList::writeConfig() { - KConfig *ksConfig= KGlobal::config(); + TDEConfig *ksConfig= TDEGlobal::config(); ksConfig->setGroup( name() ); ksConfig->writeEntry("UpdateInterval",updateInterval/1000); - QString str; + TQString str; switch(tempScale) { case Sensor::dgCelsius : str='C'; break; case Sensor::dgKelvin : str='K'; break; @@ -98,14 +98,14 @@ void SensorsList::writeConfig() // Protected methods //**************************************************************************** -void SensorsList::timerEvent( QTimerEvent * ) +void SensorsList::timerEvent( TQTimerEvent * ) { updateSensors(); } //*************** -void SensorsList::childEvent ( QChildEvent *e ) +void SensorsList::childEvent ( TQChildEvent *e ) { if(e->inserted()) { connect((Sensor *)e->child(),SIGNAL(configChanged()),this,SLOT(slotConfigChanged())); |
