summaryrefslogtreecommitdiffstats
path: root/src/regexps.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
commitf22f5c856d0ee7ec953825828bba094f14c9cade (patch)
tree1c89a4d4c420bce13c002b650e610bff026f6d06 /src/regexps.cpp
parent0bceb5251f3c826f8fc4ee021ab76ee29f1dfdd7 (diff)
downloadtdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.tar.gz
tdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.zip
TQt4 port kio-apt
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1239302 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/regexps.cpp')
-rw-r--r--src/regexps.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regexps.cpp b/src/regexps.cpp
index d49121d..9251193 100644
--- a/src/regexps.cpp
+++ b/src/regexps.cpp
@@ -13,10 +13,10 @@
#include <kdebug.h>
-bool match_dversion(QString version)
+bool match_dversion(TQString version)
{
- static QRegExp rx_revision(rxs_revision);
- QString allowed_vchars = ".+\\w";
+ static TQRegExp rx_revision(rxs_revision);
+ TQString allowed_vchars = ".+\\w";
kdDebug(DEBUG_ZONE) << version << endl;
if (version[1] == ':')
@@ -28,11 +28,11 @@ bool match_dversion(QString version)
}
kdDebug(DEBUG_ZONE) << version << endl;
- int rev_pos = version.findRev('-');
+ int rev_pos = version.tqfindRev('-');
if (rev_pos > -1)
{
allowed_vchars += "-";
- QString revision = version.right( version.length() - rev_pos - 1);
+ TQString revision = version.right( version.length() - rev_pos - 1);
if (! rx_revision.exactMatch(revision))
return false;
@@ -40,6 +40,6 @@ bool match_dversion(QString version)
version.truncate( version.length() - rev_pos - 1 );
}
- QRegExp rx_version("\\d[" + allowed_vchars + "]*");
+ TQRegExp rx_version("\\d[" + allowed_vchars + "]*");
return rx_version.exactMatch(version);
}