KDEUI
Go to the documentation of this file.
24 class KStringListValidator::Private
29 bool mFixupEnabled : 1;
36 bool fixupEnabled,
QObject *parent )
40 d->mStringList = list;
52 if ( input.isEmpty() )
56 if ( !d->mStringList.contains( input ) )
61 if ( d->mStringList.contains( input ) )
64 for ( QStringList::ConstIterator it = d->mStringList.constBegin(); it != d->mStringList.constEnd() ; ++it )
65 if ( (*it).startsWith( input ) || input.startsWith( *it ) )
77 static bool warn =
true;
79 kDebug() <<
"KStringListValidator::fixup() isn't yet implemented!";
101 return d->mFixupEnabled;
106 d->mStringList = list;
111 return d->mStringList;
118 #define ALLOWED_CHARS "!#-'*+.0-9^-~+-"
120 class KMimeTypeValidator::Private
137 if ( input.isEmpty() )
141 if ( acceptable.exactMatch( input ) )
144 QRegExp intermediate(
"[" ALLOWED_CHARS
"]*/?[" ALLOWED_CHARS
"]*", Qt::CaseInsensitive );
145 if ( intermediate.exactMatch( input ) )
154 input.remove( invalidChars );
157 #include "kstringvalidator.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 21:59:29 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.