summaryrefslogtreecommitdiffstats
path: root/src/sensorslist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensorslist.cpp')
-rw-r--r--src/sensorslist.cpp20
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()));