summaryrefslogtreecommitdiffstats
path: root/kdeui/kstringvalidator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kstringvalidator.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kstringvalidator.cpp')
-rw-r--r--kdeui/kstringvalidator.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeui/kstringvalidator.cpp b/kdeui/kstringvalidator.cpp
index e45e0dcbe..f783a4b9f 100644
--- a/kdeui/kstringvalidator.cpp
+++ b/kdeui/kstringvalidator.cpp
@@ -26,7 +26,7 @@
// KStringListValidator
//
-QValidator::State KStringListValidator::validate( QString & input, int& ) const {
+TQValidator::State KStringListValidator::validate( TQString & input, int& ) const {
if ( input.isEmpty() ) return Intermediate;
if ( isRejecting() ) // anything not in mStringList is acceptable:
@@ -38,7 +38,7 @@ QValidator::State KStringListValidator::validate( QString & input, int& ) const
if ( mStringList.find( input ) != mStringList.end() )
return Acceptable;
else
- for ( QStringList::ConstIterator it = mStringList.begin() ;
+ for ( TQStringList::ConstIterator it = mStringList.begin() ;
it != mStringList.end() ; ++it )
if ( (*it).startsWith( input ) || input.startsWith( *it ) )
return Intermediate;
@@ -46,7 +46,7 @@ QValidator::State KStringListValidator::validate( QString & input, int& ) const
return Invalid;
}
-void KStringListValidator::fixup( QString & /* input */ ) const {
+void KStringListValidator::fixup( TQString & /* input */ ) const {
if ( !isFixupEnabled() ) return;
// warn (but only once!) about non-implemented fixup():
static bool warn = true;
@@ -63,17 +63,17 @@ void KStringListValidator::fixup( QString & /* input */ ) const {
#define ALLOWED_CHARS "!#-'*+.0-9^-~+-"
-QValidator::State KMimeTypeValidator::validate( QString & input, int& ) const
+TQValidator::State KMimeTypeValidator::validate( TQString & input, int& ) const
{
if ( input.isEmpty() )
return Intermediate;
- QRegExp acceptable( "[" ALLOWED_CHARS "]+/[" ALLOWED_CHARS "]+",
+ TQRegExp acceptable( "[" ALLOWED_CHARS "]+/[" ALLOWED_CHARS "]+",
false /*case-insens.*/);
if ( acceptable.exactMatch( input ) )
return Acceptable;
- QRegExp intermediate( "[" ALLOWED_CHARS "]*/?[" ALLOWED_CHARS "]*",
+ TQRegExp intermediate( "[" ALLOWED_CHARS "]*/?[" ALLOWED_CHARS "]*",
false /*case-insensitive*/);
if ( intermediate.exactMatch( input ) )
return Intermediate;
@@ -81,10 +81,10 @@ QValidator::State KMimeTypeValidator::validate( QString & input, int& ) const
return Invalid;
}
-void KMimeTypeValidator::fixup( QString & input ) const
+void KMimeTypeValidator::fixup( TQString & input ) const
{
- QRegExp invalidChars("[^/" ALLOWED_CHARS "]+");
- input.replace( invalidChars, QString::null);
+ TQRegExp invalidChars("[^/" ALLOWED_CHARS "]+");
+ input.replace( invalidChars, TQString::null);
}
#include "kstringvalidator.moc"