From cb4ae0b104084e9c054d2a1b28ce531d104e9d76 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Sat, 27 Aug 2011 20:17:59 +0000 Subject: full screen + part edit focus --- muse2/awl/CMakeLists.txt | 2 ++ muse2/awl/lineedit.cpp | 11 +++++++++++ muse2/awl/lineedit.h | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 muse2/awl/lineedit.cpp create mode 100644 muse2/awl/lineedit.h (limited to 'muse2/awl') 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 +#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 + +class LineEdit : public QLineEdit +{ + Q_OBJECT +public: + explicit LineEdit(QWidget *parent = 0); + void focusOutEvent ( QFocusEvent * e ); +signals: + +public slots: + +}; + +#endif // LINEEDIT_H -- cgit v1.2.3