A line editor for restricted character sets.
The KRestrictedLine widget is a variant of QLineEdit which
accepts only a restricted set of characters as input.
All other characters will be discarded and the signal invalidChar()
will be emitted for each of them.
Valid characters can be passed as a QString to the constructor
or set afterwards via setValidChars().
The default key bindings of QLineEdit are still in effect.
This is almost like setting a QRegExpValidator on a KLineEdit;
the difference is that with KRestrictedLine it can all be done in Qt designer.
Author Michael Wiedmann
|