diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-10-04 18:58:03 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-10-04 18:58:03 +0000 |
commit | ad507206af844ea5f9ca0b89726a92e159fc9c8c (patch) | |
tree | 7ab0904cf67ba9000ca0e1c751ced32d068f7782 /muse2/awl/sigedit.h | |
parent | f3313cc78e637ec9bc11efce5eb943434da93416 (diff) |
fixes to SigEdit
Diffstat (limited to 'muse2/awl/sigedit.h')
-rw-r--r-- | muse2/awl/sigedit.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/muse2/awl/sigedit.h b/muse2/awl/sigedit.h index acb0b9d8..5fe8186d 100644 --- a/muse2/awl/sigedit.h +++ b/muse2/awl/sigedit.h @@ -25,9 +25,9 @@ #include "al/sig.h" //#include "sig.h" +#include <awl/sigspinbox.h> #include <QWidget> -#include <QSpinBox> #include <QHBoxLayout> #include <QLabel> @@ -48,8 +48,8 @@ class SigEdit : public QWidget AL::TimeSignature _sig; bool initialized; QLabel *slash; - QSpinBox *zSpin; - QSpinBox *nSpin; + SigSpinBox *zSpin; + SigSpinBox *nSpin; QHBoxLayout *layout; virtual void paintEvent(QPaintEvent* event); @@ -57,13 +57,16 @@ class SigEdit : public QWidget signals: void valueChanged(const AL::TimeSignature&); + void returnPressed(); private slots: void setN(const int n); void setZ(const int z); + void moveFocus(); public slots: void setValue(const AL::TimeSignature&); + void setFocus(); public: SigEdit(QWidget* parent = 0); |