author | zautrix <zautrix> | 2004-10-10 23:26:49 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-10 23:26:49 (UTC) |
commit | ea40295e233db219dc2431960e18fb4398ddb75c (patch) (side-by-side diff) | |
tree | 1d654ae51d7f65f4375787105951a8f4f9fc359e /microkde | |
parent | 640874bb21ea348edb33a54690ad225e0efdd1e4 (diff) | |
download | kdepimpi-ea40295e233db219dc2431960e18fb4398ddb75c.zip kdepimpi-ea40295e233db219dc2431960e18fb4398ddb75c.tar.gz kdepimpi-ea40295e233db219dc2431960e18fb4398ddb75c.tar.bz2 |
added better searching in kapi
-rw-r--r-- | microkde/klineedit.h | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/microkde/klineedit.h b/microkde/klineedit.h index 65e2f59..70c72d1 100644 --- a/microkde/klineedit.h +++ b/microkde/klineedit.h @@ -10,15 +10,38 @@ class KLineEdit : public QLineEdit { + + Q_OBJECT + public: KLineEdit( QWidget *parent=0, const char *name=0 ) : - QLineEdit( parent, name ) { + QLineEdit( parent, name ) + { #ifndef DESKTOP_VERSION QPEApplication::setStylusOperation( this, QPEApplication::RightOnHold ); #endif -} - + } + void keyPressEvent ( QKeyEvent * e) + { + switch ( e->key() ) { + case Qt::Key_Down: + emit scrollDOWN(); + e->accept(); + break; + case Qt::Key_Up: + emit scrollUP(); + e->accept(); + break; + default: + QLineEdit::keyPressEvent ( e ); + break; + } + + } void setTrapReturnKey( bool ) {} + signals: + void scrollUP(); + void scrollDOWN(); }; #endif |