summaryrefslogtreecommitdiffabout
path: root/microkde/klineedit.h
Side-by-side diff
Diffstat (limited to 'microkde/klineedit.h') (more/less context) (show whitespace changes)
-rw-r--r--microkde/klineedit.h25
1 files changed, 24 insertions, 1 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