|
|
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.
|
Constructor: This contructor takes three - optional - arguments. The first two parameters are simply passed on to QLineEdit.
Parameters:
parent | pointer to the parent widget |
name | pointer to the name of this widget |
valid | pointer to set of valid characters |
~ |
Destructs the restricted line editor.
void |
All characters in the string valid are treated as acceptable characters.
QString |
[const]
Returns: the string of acceptable characters.
void |
[signal]
Emitted when an invalid character was typed.
void |
[protected]
Reimplemented from KLineEdit for internal reasons; the API is not affected.