summaryrefslogtreecommitdiffstats
path: root/src/sources/ibookg4thermalsrc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 20:48:23 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 20:48:23 +0000
commit383adc283801b6238d8acfc750890613a63f8060 (patch)
treeaf3a65389067c05263db2ef4551a541501422998 /src/sources/ibookg4thermalsrc.cpp
parentda7847adb43726079c7a4be1f06acbebe0bdde57 (diff)
downloadkima-383adc283801b6238d8acfc750890613a63f8060.tar.gz
kima-383adc283801b6238d8acfc750890613a63f8060.zip
TQt4 port kima
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kima@1239290 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);