diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-08-27 20:17:59 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-08-27 20:17:59 +0000 |
commit | cb4ae0b104084e9c054d2a1b28ce531d104e9d76 (patch) | |
tree | 28fd952bf2e1ab34826b8162e4980833c546e747 /muse2/awl | |
parent | 543dbb22e201208aee602a1c56ab92d8b9adb53f (diff) |
full screen + part edit focus
Diffstat (limited to 'muse2/awl')
-rw-r--r-- | muse2/awl/CMakeLists.txt | 2 | ||||
-rw-r--r-- | muse2/awl/lineedit.cpp | 11 | ||||
-rw-r--r-- | muse2/awl/lineedit.h | 18 |
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 |