diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 00:58:40 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-05-12 00:58:40 +0800 |
commit | a7407edaf81c685d4a389785a405a53a5de4b148 (patch) | |
tree | e6e4f2d85f2172c94ac83a6e8f01e1e90a78ede9 /qmidiplayer-desktop/qmpchanneleditor.hpp | |
parent | 437b7b16c322a8e53ac55a5f831098494d9a7073 (diff) | |
download | QMidiPlayer-a7407edaf81c685d4a389785a405a53a5de4b148.tar.xz |
Format EVERYTHING.
Hopefully this will make the source code less horrendous and actually
readable.
The command used was:
```
astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp'
```
Diffstat (limited to 'qmidiplayer-desktop/qmpchanneleditor.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpchanneleditor.hpp | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/qmidiplayer-desktop/qmpchanneleditor.hpp b/qmidiplayer-desktop/qmpchanneleditor.hpp index c7ef028..9749124 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.hpp +++ b/qmidiplayer-desktop/qmpchanneleditor.hpp @@ -6,40 +6,41 @@ #include <QCloseEvent> #include "qdialskulpturestyle.hpp" -namespace Ui { - class qmpChannelEditor; +namespace Ui +{ +class qmpChannelEditor; } class QDial; -class qmpChannelEditor:public QDialog +class qmpChannelEditor: public QDialog { - Q_OBJECT + Q_OBJECT - public: - explicit qmpChannelEditor(QWidget *parent=nullptr); - ~qmpChannelEditor(); - protected: - void showEvent(QShowEvent *e); - void closeEvent(QCloseEvent *e); - public slots: - void setupWindow(int chid=-1); +public: + explicit qmpChannelEditor(QWidget *parent = nullptr); + ~qmpChannelEditor(); +protected: + void showEvent(QShowEvent *e); + void closeEvent(QCloseEvent *e); +public slots: + void setupWindow(int chid = -1); - private slots: - void commonPressed(); - void commonReleased(); - void commonChanged(); - void on_pbChLeft_clicked(); - void on_pbChRight_clicked(); +private slots: + void commonPressed(); + void commonReleased(); + void commonChanged(); + void on_pbChLeft_clicked(); + void on_pbChRight_clicked(); - private: - Ui::qmpChannelEditor *ui; - int ch,knobpressed; - void sendCC(); - void connectSlots(); - void disconnectSlots(); - QList<QDial*> dials; - QMetaObject::Connection updconn; - QCommonStyle* styl; +private: + Ui::qmpChannelEditor *ui; + int ch, knobpressed; + void sendCC(); + void connectSlots(); + void disconnectSlots(); + QList<QDial *> dials; + QMetaObject::Connection updconn; + QCommonStyle *styl; }; #endif // QMPCHANNELEDITOR_H |