summaryrefslogtreecommitdiffabout
path: root/microkde/klineedit.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/klineedit.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'microkde/klineedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/klineedit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/microkde/klineedit.h b/microkde/klineedit.h
index 70c72d1..9eb749d 100644
--- a/microkde/klineedit.h
+++ b/microkde/klineedit.h
@@ -1,47 +1,49 @@
#ifndef MINIKDE_KLINEEDIT_H
#define MINIKDE_KLINEEDIT_H
#include <qlineedit.h>
+//Added by qt3to4:
+#include <QKeyEvent>
#ifndef DESKTOP_VERSION
#include <qpe/qpeapplication.h>
#endif
class KLineEdit : public QLineEdit
{
Q_OBJECT
public:
KLineEdit( QWidget *parent=0, const char *name=0 ) :
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