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 /simple-visualization/qmpkeyboardwindow.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 'simple-visualization/qmpkeyboardwindow.hpp')
-rw-r--r-- | simple-visualization/qmpkeyboardwindow.hpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/simple-visualization/qmpkeyboardwindow.hpp b/simple-visualization/qmpkeyboardwindow.hpp index 65ad266..b540cca 100644 --- a/simple-visualization/qmpkeyboardwindow.hpp +++ b/simple-visualization/qmpkeyboardwindow.hpp @@ -7,24 +7,24 @@ class QLabel; class qmpPianoWidget; -class qmpKeyboardWindow:public QWidget +class qmpKeyboardWindow: public QWidget { - Q_OBJECT - private: - qmpPianoWidget *pw[16]; - QLabel *lb[16]; - qmpPluginAPI *api; - int eh; - public: - qmpKeyboardWindow(qmpPluginAPI *_api,QWidget *parent); - ~qmpKeyboardWindow(); - void resetAll(); - protected: - void closeEvent(QCloseEvent *event); - signals: - void keystateupdated(int ch,int key,bool state); - public slots: - void onkeystatesupdate(int ch,int key,bool state); + Q_OBJECT +private: + qmpPianoWidget *pw[16]; + QLabel *lb[16]; + qmpPluginAPI *api; + int eh; +public: + qmpKeyboardWindow(qmpPluginAPI *_api, QWidget *parent); + ~qmpKeyboardWindow(); + void resetAll(); +protected: + void closeEvent(QCloseEvent *event); +signals: + void keystateupdated(int ch, int key, bool state); +public slots: + void onkeystatesupdate(int ch, int key, bool state); }; #endif |