diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /libk9copy/k9tools.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/k9tools.cpp')
-rw-r--r-- | libk9copy/k9tools.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libk9copy/k9tools.cpp b/libk9copy/k9tools.cpp index 1464553..4a74e13 100644 --- a/libk9copy/k9tools.cpp +++ b/libk9copy/k9tools.cpp @@ -11,24 +11,24 @@ // #include "k9tools.h" #include <kstandarddirs.h> -#include <qdir.h> +#include <tqdir.h> -bool k9Tools::checkProgram(QString _progName) { +bool k9Tools::checkProgram(TQString _progName) { return KStandardDirs::findExe( _progName,NULL,false) !=NULL ; } -void k9Tools::clearOutput(QString name) { - QDir dir(name); +void k9Tools::clearOutput(TQString name) { + TQDir dir(name); //delete files in directory - QStringList lst = dir.entryList( "*",QDir::Files |QDir::Hidden ); - for ( QStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { - //QString c(( *it ).latin1() ); + TQStringList lst = dir.entryList( "*",TQDir::Files |TQDir::Hidden ); + for ( TQStringList::Iterator it = lst.begin(); it != lst.end(); ++it ) { + //TQString c(( *it ).latin1() ); dir.remove (*it); } //scanning subdir - QStringList lstdir = dir.entryList( "*",QDir::Dirs ); - for ( QStringList::Iterator it = lstdir.begin(); it != lstdir.end(); ++it ) { - QString c=*it; + TQStringList lstdir = dir.entryList( "*",TQDir::Dirs ); + for ( TQStringList::Iterator it = lstdir.begin(); it != lstdir.end(); ++it ) { + TQString c=*it; if ((c!=".") && c!="..") { clearOutput(dir.absFilePath(c)); dir.rmdir(c); |