summaryrefslogtreecommitdiffstats
path: root/src/lmsensors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lmsensors.cpp')
-rw-r--r--src/lmsensors.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lmsensors.cpp b/src/lmsensors.cpp
index 073d172..fb44e78 100644
--- a/src/lmsensors.cpp
+++ b/src/lmsensors.cpp
@@ -21,8 +21,8 @@
#include <string.h>
#include <sys/stat.h>
-#include <qstrlist.h>
-#include <qobjectlist.h>
+#include <ntqstrlist.h>
+#include <ntqobjectlist.h>
#include "lmsensors.h"
@@ -30,8 +30,8 @@
// Public methods
//****************************************************************************
-LMSensors::LMSensors(QObject *parent, const char * name)
- : QObject(parent,name)
+LMSensors::LMSensors(TQObject *parent, const char * name)
+ : TQObject(parent,name)
{
if(initSensors()) createLMSensors();
createI8KSensors();
@@ -48,7 +48,7 @@ bool LMSensors::initSensors()
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
FILE *fp=fopen("/etc/sensors.conf","r");
if(!fp) {
- qWarning("KSensors error: /etc/sensors.conf not found !");
+ tqWarning("KSensors error: /etc/sensors.conf not found !");
return false;
}
#else
@@ -56,7 +56,7 @@ bool LMSensors::initSensors()
#endif
int err= sensors_init(fp);
if(err) {
- qWarning("KSensors error: sensors_init fail, error code %d",err);
+ tqWarning("KSensors error: sensors_init fail, error code %d",err);
return false;
}
#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */
@@ -115,7 +115,7 @@ const sensors_feature_data *sensor_data;
void LMSensors::setMonitorized(bool enable)
{
- QObjectList *list= getSensorsChips();
+ TQObjectList *list= getSensorsChips();
if(list)
for(LMSensorsChip *sensor=(LMSensorsChip*)list->first(); sensor!=0; sensor= (LMSensorsChip *)list->next())
sensor->setMonitorized(enable);
@@ -132,7 +132,7 @@ Sensor *LMSensors::getSensor(const char *name)
return sensor;
}
-void LMSensors::childEvent( QChildEvent *e )
+void LMSensors::childEvent( TQChildEvent *e )
{
if(e->inserted()) {
connect((SensorsList *)e->child(),SIGNAL(valueChanged(Sensor *)) ,this,SIGNAL(valueChanged(Sensor *)));