diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 20:48:23 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 20:48:23 +0000 |
commit | 383adc283801b6238d8acfc750890613a63f8060 (patch) | |
tree | af3a65389067c05263db2ef4551a541501422998 /src/sources/ibmhdaps.cpp | |
parent | da7847adb43726079c7a4be1f06acbebe0bdde57 (diff) | |
download | kima-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/ibmhdaps.cpp')
-rw-r--r-- | src/sources/ibmhdaps.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sources/ibmhdaps.cpp b/src/sources/ibmhdaps.cpp index 05d945b..64d3d9a 100644 --- a/src/sources/ibmhdaps.cpp +++ b/src/sources/ibmhdaps.cpp @@ -19,15 +19,15 @@ ***************************************************************************/ #include "ibmhdaps.h" -#include <qtextstream.h> -#include <qdir.h> +#include <tqtextstream.h> +#include <tqdir.h> #include <klocale.h> -IBMHDAPSSrc::IBMHDAPSSrc(QWidget* inParent, const QFile& inSourceFile): +IBMHDAPSSrc::IBMHDAPSSrc(TQWidget* inParent, const TQFile& inSourceFile): LabelSource(inParent), mSourceFile(inSourceFile.name()), mTrigger(this){ - mID = "HDAPS" + mSourceFile.name().section( '/', -1, -1, QString::SectionSkipEmpty ).remove("temp"); + mID = "HDAPS" + mSourceFile.name().section( '/', -1, -1, TQString::SectionSkipEmpty ).remove("temp"); mName = mID; mDescription = i18n("This thermal source is provided by the IBM HDAPS driver."); } @@ -35,15 +35,15 @@ IBMHDAPSSrc::IBMHDAPSSrc(QWidget* inParent, const QFile& inSourceFile): IBMHDAPSSrc::~IBMHDAPSSrc(){ } -std::list<Source*>IBMHDAPSSrc::createInstances(QWidget* inParent){ +std::list<Source*>IBMHDAPSSrc::createInstances(TQWidget* inParent){ std::list<Source*> list; - QDir hdapsDir( "/sys/bus/platform/drivers/hdaps/hdaps" ); + TQDir hdapsDir( "/sys/bus/platform/drivers/hdaps/hdaps" ); if ( hdapsDir.exists() ){ - hdapsDir.setFilter( QDir::Files | QDir::NoSymLinks ); - hdapsDir.setSorting( QDir::Name); + hdapsDir.setFilter( TQDir::Files | TQDir::NoSymLinks ); + hdapsDir.setSorting( TQDir::Name); for ( unsigned int i = 0; i < hdapsDir.count(); i++ ){ if(hdapsDir[i].startsWith("temp")){ - QFile hdapsFile(hdapsDir.canonicalPath() + "/" + hdapsDir[i]); + TQFile hdapsFile(hdapsDir.canonicalPath() + "/" + hdapsDir[i]); list.push_back(new IBMHDAPSSrc(inParent, hdapsFile)); } } @@ -51,10 +51,10 @@ std::list<Source*>IBMHDAPSSrc::createInstances(QWidget* inParent){ return list; } -QString IBMHDAPSSrc::fetchValue(){ - QString s = "n/a"; +TQString IBMHDAPSSrc::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); |