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/cpuinfofreqsrc.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/cpuinfofreqsrc.cpp')
-rw-r--r-- | src/sources/cpuinfofreqsrc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sources/cpuinfofreqsrc.cpp b/src/sources/cpuinfofreqsrc.cpp index 6227439..6b1b55d 100644 --- a/src/sources/cpuinfofreqsrc.cpp +++ b/src/sources/cpuinfofreqsrc.cpp @@ -19,11 +19,11 @@ ***************************************************************************/ #include "cpuinfofreqsrc.h" -#include <qtextstream.h> -#include <qfile.h> +#include <tqtextstream.h> +#include <tqfile.h> #include <klocale.h> -CpuinfoFreqSrc::CpuinfoFreqSrc(QWidget* inParent, const QFile& inSourceFile): +CpuinfoFreqSrc::CpuinfoFreqSrc(TQWidget* inParent, const TQFile& inSourceFile): LabelSource(inParent), mSourceFile(inSourceFile.name()), mTrigger(this){ @@ -35,16 +35,16 @@ CpuinfoFreqSrc::CpuinfoFreqSrc(QWidget* inParent, const QFile& inSourceFile): CpuinfoFreqSrc::~CpuinfoFreqSrc(){ } -std::list<Source*>CpuinfoFreqSrc::createInstances(QWidget* inParent){ +std::list<Source*>CpuinfoFreqSrc::createInstances(TQWidget* inParent){ std::list<Source*> list; - QFile cpuinfoFreqFile( "/proc/cpuinfo" ); + TQFile cpuinfoFreqFile( "/proc/cpuinfo" ); if(cpuinfoFreqFile.open(IO_ReadOnly)) list.push_back(new CpuinfoFreqSrc(inParent, cpuinfoFreqFile)); return list; } -QString CpuinfoFreqSrc::fetchValue(){ - QString s = "n/a"; +TQString CpuinfoFreqSrc::fetchValue(){ + TQString s = "n/a"; if(mSourceFile.open(IO_ReadOnly)){ while( mSourceFile.readLine( s, 64 ) != -1 ) if( s.startsWith( "cpu MHz") ) |