From f22f5c856d0ee7ec953825828bba094f14c9cade Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 21:38:25 +0000 Subject: 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 --- src/regexps.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/regexps.cpp') 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 -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); } -- cgit v1.2.1