aboutsummaryrefslogtreecommitdiff
path: root/aolineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'aolineedit.h')
-rw-r--r--aolineedit.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/aolineedit.h b/aolineedit.h
new file mode 100644
index 0000000..ce17680
--- /dev/null
+++ b/aolineedit.h
@@ -0,0 +1,26 @@
+#ifndef AOLINEEDIT_H
+#define AOLINEEDIT_H
+
+#include <QLineEdit>
+#include <QMouseEvent>
+
+class AOLineEdit : public QLineEdit
+{
+ Q_OBJECT
+
+public:
+ AOLineEdit(QWidget *parent);
+
+protected:
+ void mouseDoubleClickEvent(QMouseEvent *e);
+
+signals:
+ void double_clicked();
+
+private slots:
+ void on_enter_pressed();
+
+
+};
+
+#endif // AOLINEEDIT_H