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
435 B

#include <tqkeycode.h>
#include <tqstring.h>
#include <kdebug.h>
#include "kparanoidline.h"
KParanoidLine::KParanoidLine(TQWidget *parent, const char *name)
: KLineEdit(parent, name)
{
}
KParanoidLine::~KParanoidLine()
{
}
void KParanoidLine::keyPressEvent(TQKeyEvent *e)
{
if (e->key() == Key_BackSpace)
emit backspacePressed();
emit textEntered(e->text());
TQLineEdit::keyPressEvent(e);
}
#include "kparanoidline.moc"