KRestrictedLine Class Reference

[kio Index] [kio Hierarchy] [Headers]


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

#include <krestrictedline.h>

Inherits: QLineEdit (qt)

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 ) [public]

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

Parameters:
valid pointer to set of valid characters
name pointer to the name of this widget
parent pointer to the parent widget

~KRestrictedLine() [public]

Destructor

void setValidChars(const char *valid) [public]

All characters in *valid are treated as valid characters

void keyPressEvent( QKeyEvent *e ) [protected]

Handles the special keys

void invalidChar(int) [signal]

This signal is emitted, if an invalid character was typed


  • Author: Michael Wiedmann <mw@miwie.in-berlin.de>
  • Version: 0.0.1
  • Documentation generated by tasin@cd1 on Die Nov 30 17:32:00 CET 1999
Kdoc