KDEUI
krestrictedline.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KRESTRICTEDLINE_H
00023 #define KRESTRICTEDLINE_H
00024
00025 #include <klineedit.h>
00026
00027 class KRestrictedLinePrivate;
00045 class KDEUI_EXPORT KRestrictedLine : public KLineEdit
00046 {
00047 Q_OBJECT
00048 Q_PROPERTY( QString validChars READ validChars WRITE setValidChars )
00049
00050 public:
00051
00057 explicit KRestrictedLine( QWidget* parent = 0);
00058
00062 ~KRestrictedLine();
00063
00068 void setValidChars(const QString& valid);
00072 QString validChars() const;
00073
00074 Q_SIGNALS:
00075
00079 void invalidChar(int);
00080
00081 protected:
00082 void keyPressEvent( QKeyEvent *e );
00083
00084 private:
00085 KRestrictedLinePrivate * const d;
00086 };
00087
00088 #endif // KRESTRICTEDLINE_H