diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 18:31:12 +0000 |
commit | 0a80cfd57d271dd44221467efb426675fa470356 (patch) | |
tree | 6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/kvilib/ext/kvi_miscutils.cpp | |
parent | 3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff) | |
download | kvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip |
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvilib/ext/kvi_miscutils.cpp')
-rw-r--r-- | src/kvilib/ext/kvi_miscutils.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kvilib/ext/kvi_miscutils.cpp b/src/kvilib/ext/kvi_miscutils.cpp index 184345ed..7b3c4caa 100644 --- a/src/kvilib/ext/kvi_miscutils.cpp +++ b/src/kvilib/ext/kvi_miscutils.cpp @@ -25,22 +25,22 @@ #define __KVILIB__ #include "kvi_miscutils.h" -#include <qstringlist.h> +#include <tqstringlist.h> namespace KviMiscUtils { - int compareVersions(const QString &szVersion1,const QString &szVersion2) + int compareVersions(const TQString &szVersion1,const TQString &szVersion2) { #ifdef COMPILE_USE_QT4 - QStringList sl1 = szVersion1.split("."); - QStringList sl2 = szVersion2.split("."); + TQStringList sl1 = szVersion1.split("."); + TQStringList sl2 = szVersion2.split("."); #else - QStringList sl1 = QStringList::split(".",szVersion1); - QStringList sl2 = QStringList::split(".",szVersion2); + TQStringList sl1 = TQStringList::split(".",szVersion1); + TQStringList sl2 = TQStringList::split(".",szVersion2); #endif - QStringList::Iterator it1 = sl1.begin(); - QStringList::Iterator it2 = sl2.begin(); + TQStringList::Iterator it1 = sl1.begin(); + TQStringList::Iterator it2 = sl2.begin(); while((it1 != sl1.end()) && (it2 != sl2.end())) { bool bOk; @@ -64,16 +64,16 @@ namespace KviMiscUtils return 0; } - bool isValidVersionString(const QString &szVersion) + bool isValidVersionString(const TQString &szVersion) { #ifdef COMPILE_USE_QT4 - QStringList sl = szVersion.split("."); + TQStringList sl = szVersion.split("."); #else - QStringList sl = QStringList::split(".",szVersion); + TQStringList sl = TQStringList::split(".",szVersion); #endif if(sl.isEmpty())return false; // must all be numbers - for(QStringList::Iterator it = sl.begin();it != sl.end();++it) + for(TQStringList::Iterator it = sl.begin();it != sl.end();++it) { bool bOk; int i = (*it).toInt(&bOk); |