From f7f2e9039cfd6c3d07a28137e321fa96b0267084 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 11 Jan 2020 23:26:03 +0800 Subject: Code refactoring for qmpChannelEditor. Do not crash if preset selection dialog is closed with no preset selected. More translatable strings in qmpChannelEditor. --- qmidiplayer-desktop/qmpchanneleditor.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qmidiplayer-desktop/qmpchanneleditor.hpp') 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 dials; QMetaObject::Connection updconn; QCommonStyle* styl; }; -- cgit v1.2.3