aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpchanneleditor.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-11 23:26:03 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-11 23:26:03 +0800
commitf7f2e9039cfd6c3d07a28137e321fa96b0267084 (patch)
tree1fd53d58a388b575881dce827520b3a8d6984fbb /qmidiplayer-desktop/qmpchanneleditor.hpp
parent12ad6495fa332ea499485082272f796c4b08c83c (diff)
downloadQMidiPlayer-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.hpp4
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;
};