class KRestrictedLine

Restricted Editline: Only selected Characters are valid input. More...

Definition#include <krestrictedline.h>
InheritsQLineEdit (qt)
Inherited byKIntegerLine
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members

Protected Members

Signals


Detailed Description

Restricted Editline: Only selected Characters are valid input. All other characters will be discarded and the signal invalidChar() will be emitted for each of them. Valid characters can be passed through a pointer to the constructor or call of a public method. The default key binding of QLineEdit is still in effect.

KRestrictedLine ( QWidget *parent=0, const char *name=0, const char *valid=0 )

Constructor: This contructor takes three - optional - arguments. The first two parameters are simply passed on to QLineEdit.

Parameters:
parentpointer to the parent widget
namepointer to the name of this widget
validpointer to set of valid characters

void setValidChars (const char *valid)

All characters in *valid are treated as valid characters

void invalidChar (int)
[signal]

This signal is emitted, if an invalid character was typed