diff options
Diffstat (limited to 'src/regexps.cpp')
-rw-r--r-- | src/regexps.cpp | 12 |
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); } |