summaryrefslogtreecommitdiffstats
path: root/src/sources/ibmacpifansrc.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/ibmacpifansrc.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/ibmacpifansrc.cpp')
-rw-r--r--src/sources/ibmacpifansrc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sources/ibmacpifansrc.cpp b/src/sources/ibmacpifansrc.cpp
index f2edf33..a311bda 100644
--- a/src/sources/ibmacpifansrc.cpp
+++ b/src/sources/ibmacpifansrc.cpp
@@ -19,11 +19,11 @@
***************************************************************************/
#include "ibmacpifansrc.h"
-#include <qtextstream.h>
-#include <qfile.h>
+#include <tqtextstream.h>
+#include <tqfile.h>
#include <klocale.h>
-IBMACPIFanSrc::IBMACPIFanSrc(QWidget* inParent, const QFile& inSourceFile):
+IBMACPIFanSrc::IBMACPIFanSrc(TQWidget* inParent, const TQFile& inSourceFile):
LabelSource(inParent),
mSourceFile(inSourceFile.name()),
mTrigger(this){
@@ -35,16 +35,16 @@ IBMACPIFanSrc::IBMACPIFanSrc(QWidget* inParent, const QFile& inSourceFile):
IBMACPIFanSrc::~IBMACPIFanSrc(){
}
-std::list<Source*>IBMACPIFanSrc::createInstances(QWidget* inParent){
+std::list<Source*>IBMACPIFanSrc::createInstances(TQWidget* inParent){
std::list<Source*> list;
- QFile ibmFile( "/proc/acpi/ibm/fan" );
+ TQFile ibmFile( "/proc/acpi/ibm/fan" );
if(ibmFile.open(IO_ReadOnly))
list.push_back(new IBMACPIFanSrc(inParent, ibmFile));
return list;
}
-QString IBMACPIFanSrc::fetchValue(){
- QString s = "n/a";
+TQString IBMACPIFanSrc::fetchValue(){
+ TQString s = "n/a";
if(mSourceFile.open(IO_ReadOnly)){
while( mSourceFile.readLine( s, 64 ) != -1 )
if(s.startsWith("speed:"))