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.h24
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