summaryrefslogtreecommitdiffstats
path: root/src/sources/ibookg4thermalsrc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sources/ibookg4thermalsrc.cpp')
-rw-r--r--src/sources/ibookg4thermalsrc.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sources/ibookg4thermalsrc.cpp b/src/sources/ibookg4thermalsrc.cpp
index ba3a69a..54f5a91 100644
--- a/src/sources/ibookg4thermalsrc.cpp
+++ b/src/sources/ibookg4thermalsrc.cpp
@@ -20,10 +20,10 @@
***************************************************************************/
#include "ibookg4thermalsrc.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <klocale.h>
-IbookG4ThermalSrc::IbookG4ThermalSrc(QWidget* inParent, const QFile& inSourceFile, const QString& inName):
+IbookG4ThermalSrc::IbookG4ThermalSrc(TQWidget* inParent, const TQFile& inSourceFile, const TQString& inName):
LabelSource(inParent),
mSourceFile(inSourceFile.name()),
mTrigger(this){
@@ -35,25 +35,25 @@ IbookG4ThermalSrc::IbookG4ThermalSrc(QWidget* inParent, const QFile& inSourceFil
IbookG4ThermalSrc::~IbookG4ThermalSrc(){
}
-std::list<Source*>IbookG4ThermalSrc::createInstances(QWidget* inParent){
+std::list<Source*>IbookG4ThermalSrc::createInstances(TQWidget* inParent){
std::list<Source*> list;
- QFile ibookCPUFile("/sys/devices/temperatures/sensor1_temperature");
+ TQFile ibookCPUFile("/sys/devices/temperatures/sensor1_temperature");
if(ibookCPUFile.open(IO_ReadOnly)){
- list.push_back(new IbookG4ThermalSrc(inParent, ibookCPUFile, QString("CPU")));
+ list.push_back(new IbookG4ThermalSrc(inParent, ibookCPUFile, TQString("CPU")));
ibookCPUFile.close();
}
- QFile ibookGPUFile("/sys/devices/temperatures/sensor2_temperature");
+ TQFile ibookGPUFile("/sys/devices/temperatures/sensor2_temperature");
if(ibookGPUFile.open(IO_ReadOnly)){
- list.push_back(new IbookG4ThermalSrc(inParent, ibookGPUFile, QString("GPU")));
+ list.push_back(new IbookG4ThermalSrc(inParent, ibookGPUFile, TQString("GPU")));
ibookGPUFile.close();
}
return list;
}
-QString IbookG4ThermalSrc::fetchValue(){
- QString s = "n/a";
+TQString IbookG4ThermalSrc::fetchValue(){
+ TQString s = "n/a";
if(mSourceFile.open(IO_ReadOnly)){
- QTextStream textStream( &mSourceFile );
+ TQTextStream textStream( &mSourceFile );
s = textStream.readLine().stripWhiteSpace();
mSourceFile.close();
s= formatTemperature(s);