From 383adc283801b6238d8acfc750890613a63f8060 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 20:48:23 +0000 Subject: 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 --- src/sources/cpuinfofreqsrc.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sources/cpuinfofreqsrc.cpp') 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 -#include +#include +#include #include -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::listCpuinfoFreqSrc::createInstances(QWidget* inParent){ +std::listCpuinfoFreqSrc::createInstances(TQWidget* inParent){ std::list 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") ) -- cgit v1.2.1