-rw-r--r-- | microkde/klineedit.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/microkde/klineedit.h b/microkde/klineedit.h new file mode 100644 index 0000000..65e2f59 --- a/dev/null +++ b/microkde/klineedit.h @@ -0,0 +1,24 @@ +#ifndef MINIKDE_KLINEEDIT_H +#define MINIKDE_KLINEEDIT_H + +#include <qlineedit.h> + +#ifndef DESKTOP_VERSION +#include <qpe/qpeapplication.h> +#endif + + +class KLineEdit : public QLineEdit +{ + public: + KLineEdit( QWidget *parent=0, const char *name=0 ) : + QLineEdit( parent, name ) { +#ifndef DESKTOP_VERSION + QPEApplication::setStylusOperation( this, QPEApplication::RightOnHold ); +#endif +} + + void setTrapReturnKey( bool ) {} +}; + +#endif |