summaryrefslogtreecommitdiffstats
path: root/src/sources/omnibookthermalsrc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sources/omnibookthermalsrc.cpp')
-rw-r--r--src/sources/omnibookthermalsrc.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sources/omnibookthermalsrc.cpp b/src/sources/omnibookthermalsrc.cpp
index a8a8203..11f8cd9 100644
--- a/src/sources/omnibookthermalsrc.cpp
+++ b/src/sources/omnibookthermalsrc.cpp
@@ -19,11 +19,11 @@
***************************************************************************/
#include "omnibookthermalsrc.h"
-#include <qtextstream.h>
-#include <qfile.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
#include <klocale.h>
-OmnibookThermalSrc::OmnibookThermalSrc(QWidget* inParent, const QFile& inSourceFile):
+OmnibookThermalSrc::OmnibookThermalSrc(TQWidget* inParent, const TQFile& inSourceFile):
LabelSource(inParent),
mSourceFile(inSourceFile.name()),
mTrigger(this){
@@ -35,22 +35,22 @@ OmnibookThermalSrc::OmnibookThermalSrc(QWidget* inParent, const QFile& inSourceF
OmnibookThermalSrc::~OmnibookThermalSrc(){
}
-std::list<Source*>OmnibookThermalSrc::createInstances(QWidget* inParent){
+std::list<Source*>OmnibookThermalSrc::createInstances(TQWidget* inParent){
std::list<Source*> list;
- QFile omiFile( "/proc/omnibook/temperature" );
+ TQFile omiFile( "/proc/omnibook/temperature" );
if(omiFile.open(IO_ReadOnly)){
list.push_back(new OmnibookThermalSrc(inParent, omiFile));
}
return list;
}
-QString OmnibookThermalSrc::fetchValue(){
- QString s = "n/a";
+TQString OmnibookThermalSrc::fetchValue(){
+ TQString s = "n/a";
if(mSourceFile.open(IO_ReadOnly)){
- QTextStream textStream( &mSourceFile );
+ TQTextStream textStream( &mSourceFile );
s = textStream.readLine();
mSourceFile.close();
- s = s.section(':',-1,-1, QString::SectionSkipEmpty).stripWhiteSpace();
+ s = s.section(':',-1,-1, TQString::SectionSkipEmpty).stripWhiteSpace();
s = formatTemperature(s.left(s.length()-1));
}
return s;