krestrictedline.h
/*
*
* $Id: krestrictedline.h 465272 2005-09-29 09:47:40Z mueller $
*
* Definition of KRestrictedLine
*
* Copyright (C) 1997 Michael Wiedmann, <mw@miwie.in-berlin.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef KRESTRICTEDLINE_H
#define KRESTRICTEDLINE_H
#include <klineedit.h>
class KDEUI_EXPORT KRestrictedLine : public KLineEdit
{
Q_OBJECT
Q_PROPERTY( QString validChars READ validChars WRITE setValidChars )
public:
KRestrictedLine( QWidget *parent=0, const char *name=0,
const QString& valid = QString::null);
~KRestrictedLine();
void setValidChars(const QString& valid);
QString validChars() const;
signals:
void invalidChar(int);
protected:
void keyPressEvent( QKeyEvent *e );
private:
QString qsValidChars;
protected:
virtual void virtual_hook( int id, void* data );
private:
class KRestrictedLinePrivate* d;
};
#endif // KRESTRICTEDLINE_H
KRestrictedLine
A line editor for restricted character sets.
Definition: krestrictedline.h:44
KLineEdit::keyPressEvent
virtual void keyPressEvent(QKeyEvent *)
Re-implemented for internal reasons.
Definition: klineedit.cpp:440
KLineEdit
An enhanced QLineEdit widget for inputting text.
Definition: klineedit.h:145

KDE Home | KDE Accessibility Home | Description of Access Keys