summaryrefslogtreecommitdiff
path: root/muse2/awl
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/awl')
-rw-r--r--muse2/awl/CMakeLists.txt2
-rw-r--r--muse2/awl/lineedit.cpp11
-rw-r--r--muse2/awl/lineedit.h18
3 files changed, 31 insertions, 0 deletions
diff --git a/muse2/awl/CMakeLists.txt b/muse2/awl/CMakeLists.txt
index 21772470..532d0c8d 100644
--- a/muse2/awl/CMakeLists.txt
+++ b/muse2/awl/CMakeLists.txt
@@ -29,6 +29,7 @@ QT4_WRAP_CPP (awl_mocs
drawbar.h
floatentry.h
knob.h
+ lineedit.h
midimeter.h
midimslider.h
midipanentry.h
@@ -64,6 +65,7 @@ file (GLOB awl_source_files
floatentry.cpp
knob.cpp
# ltest.cpp
+ lineedit.cpp
midimeter.cpp
midimslider.cpp
midipanentry.cpp
diff --git a/muse2/awl/lineedit.cpp b/muse2/awl/lineedit.cpp
new file mode 100644
index 00000000..07d2e49f
--- /dev/null
+++ b/muse2/awl/lineedit.cpp
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include "lineedit.h"
+
+LineEdit::LineEdit(QWidget *parent) :
+ QLineEdit(parent)
+{
+}
+void LineEdit::focusOutEvent ( QFocusEvent * e )
+{
+ emit returnPressed();
+}
diff --git a/muse2/awl/lineedit.h b/muse2/awl/lineedit.h
new file mode 100644
index 00000000..4ad6116e
--- /dev/null
+++ b/muse2/awl/lineedit.h
@@ -0,0 +1,18 @@
+#ifndef LINEEDIT_H
+#define LINEEDIT_H
+
+#include <QLineEdit>
+
+class LineEdit : public QLineEdit
+{
+ Q_OBJECT
+public:
+ explicit LineEdit(QWidget *parent = 0);
+ void focusOutEvent ( QFocusEvent * e );
+signals:
+
+public slots:
+
+};
+
+#endif // LINEEDIT_H