KRestrictedLine Class Reference
The KRestrictedLine widget is a variant of QLineEdit which accepts only a restricted set of characters as input. A line editor for restricted character sets. More...
#include <krestrictedline.h>
Inheritance diagram for KRestrictedLine:


| Signals | |
| void | invalidChar (int) | 
| Public Member Functions | |
| KRestrictedLine (QWidget *parent=0, const char *name=0, const QString &valid=QString::null) | |
| ~KRestrictedLine () | |
| void | setValidChars (const QString &valid) | 
| QString | validChars () const | 
| Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) | 
| virtual void | virtual_hook (int id, void *data) | 
Detailed Description
The KRestrictedLine widget is a variant of QLineEdit which accepts only a restricted set of characters as input. A line editor for restricted character sets.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.
- Author:
- Michael Wiedmann <mw@miwie.in-berlin.de>
- Version:
- 0.0.1
Definition at line 44 of file krestrictedline.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||||||
| Constructor: This contructor takes three - optional - arguments. The first two parameters are simply passed on to QLineEdit. 
 Definition at line 29 of file krestrictedline.cpp. | 
| 
 | 
| Destructs the restricted line editor. 
 Definition at line 37 of file krestrictedline.cpp. | 
Member Function Documentation
| 
 | 
| All characters in the string valid are treated as acceptable characters. 
 Definition at line 69 of file krestrictedline.cpp. | 
| 
 | 
| 
 
 Definition at line 74 of file krestrictedline.cpp. | 
| 
 | 
| Emitted when an invalid character was typed. 
 Referenced by keyPressEvent(). | 
| 
 | 
| Re-implemented for internal reasons. API not affected. See QLineEdit::keyPressEvent(). Reimplemented from KLineEdit. Definition at line 43 of file krestrictedline.cpp. References QKeyEvent::ascii(), QString::contains(), invalidChar(), QString::isEmpty(), QKeyEvent::key(), and QLineEdit::keyPressEvent(). | 
The documentation for this class was generated from the following files:

