KDEUI
kstringvalidator.cpp
Go to the documentation of this file.
64 for ( QStringList::ConstIterator it = d->mStringList.constBegin(); it != d->mStringList.constEnd() ; ++it )
KMimeTypeValidator(QObject *parent=0)
Creates a new mime type validator.
Definition: kstringvalidator.cpp:124
KStringListValidator(const QStringList &list=QStringList(), bool rejecting=true, bool fixupEnabled=false, QObject *parent=0)
Creates a new string validator.
Definition: kstringvalidator.cpp:35
QString & remove(int position, int n)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QStringList stringList() const
Returns the string list of the validator.
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual State validate(QString &input, int &pos) const
Reimplemented from.
Definition: kstringvalidator.cpp:50
virtual State validate(QString &input, int &pos) const
Checks for well-formed mimetype.
Definition: kstringvalidator.cpp:135
void setRejecting(bool rejecting)
Sets whether the string validator is in rejecting mode or not.
Definition: kstringvalidator.cpp:84
typedef ConstIterator
bool isRejecting() const
Returns whether the string validator is in rejecting mode.
Definition: kstringvalidator.cpp:89
virtual void fixup(QString &input) const
Removes all characters that are forbidden in mimetypes.
Definition: kstringvalidator.cpp:151
bool exactMatch(const QString &str) const
bool isFixupEnabled() const
Returns whether the fixup flag is set.
Definition: kstringvalidator.cpp:99
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.