From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: TQt4 port ktorrent This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/infowidget/localefloatvalidator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/infowidget/localefloatvalidator.cpp') diff --git a/plugins/infowidget/localefloatvalidator.cpp b/plugins/infowidget/localefloatvalidator.cpp index 7faafed..f0c20ae 100644 --- a/plugins/infowidget/localefloatvalidator.cpp +++ b/plugins/infowidget/localefloatvalidator.cpp @@ -23,16 +23,16 @@ #include #include "localefloatvalidator.h" -kt::LocaleFloatValidator::LocaleFloatValidator( QObject * parent, const char * name ) -:QValidator(parent, name) +kt::LocaleFloatValidator::LocaleFloatValidator( TQObject * tqparent, const char * name ) +:TQValidator(tqparent, name) { - QString decimalPoint = QRegExp::escape(KGlobal::locale()->decimalSymbol()); + TQString decimalPoint = TQRegExp::escape(KGlobal::locale()->decimalSymbol()); regexp.setPattern("^-?\\d*(" + decimalPoint + "\\d*)?$"); } -QValidator::State kt::LocaleFloatValidator::validate( QString & str, int & pos) const +TQValidator::State kt::LocaleFloatValidator::validate( TQString & str, int & pos) const { - return regexp.exactMatch(str) ? QValidator::Acceptable : QValidator::Invalid; + return regexp.exactMatch(str) ? TQValidator::Acceptable : TQValidator::Invalid; } -- cgit v1.2.1