diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-01-11 23:26:03 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-01-11 23:26:03 +0800 |
commit | f7f2e9039cfd6c3d07a28137e321fa96b0267084 (patch) | |
tree | 1fd53d58a388b575881dce827520b3a8d6984fbb /qmidiplayer-desktop/qmpchanneleditor.hpp | |
parent | 12ad6495fa332ea499485082272f796c4b08c83c (diff) | |
download | QMidiPlayer-f7f2e9039cfd6c3d07a28137e321fa96b0267084.tar.xz |
Code refactoring for qmpChannelEditor.
Do not crash if preset selection dialog is closed with no preset selected.
More translatable strings in qmpChannelEditor.
Diffstat (limited to 'qmidiplayer-desktop/qmpchanneleditor.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchanneleditor.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpchanneleditor.hpp b/qmidiplayer-desktop/qmpchanneleditor.hpp index 350db1e..c7ef028 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.hpp +++ b/qmidiplayer-desktop/qmpchanneleditor.hpp @@ -10,12 +10,13 @@ namespace Ui { class qmpChannelEditor; } +class QDial; class qmpChannelEditor:public QDialog { Q_OBJECT public: - explicit qmpChannelEditor(QWidget *parent=0); + explicit qmpChannelEditor(QWidget *parent=nullptr); ~qmpChannelEditor(); protected: void showEvent(QShowEvent *e); @@ -36,6 +37,7 @@ class qmpChannelEditor:public QDialog void sendCC(); void connectSlots(); void disconnectSlots(); + QList<QDial*> dials; QMetaObject::Connection updconn; QCommonStyle* styl; }; |