You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mathemagics/mathemagics/kparanoidline.cpp

28 lines
430 B

#include <qkeycode.h>
#include <qstring.h>
#include <kdebug.h>
#include "kparanoidline.h"
KParanoidLine::KParanoidLine(QWidget *parent, const char *name)
: KLineEdit(parent, name)
{
}
KParanoidLine::~KParanoidLine()
{
}
void KParanoidLine::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Key_BackSpace)
emit backspacePressed();
emit textEntered(e->text());
QLineEdit::keyPressEvent(e);
}
#include "kparanoidline.moc"