summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_miscutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvilib/ext/kvi_miscutils.cpp')
-rw-r--r--src/kvilib/ext/kvi_miscutils.cpp24
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);