From a7407edaf81c685d4a389785a405a53a5de4b148 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 12 May 2020 00:58:40 +0800 Subject: 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' ``` --- simple-visualization/qmppianowidget.hpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'simple-visualization/qmppianowidget.hpp') diff --git a/simple-visualization/qmppianowidget.hpp b/simple-visualization/qmppianowidget.hpp index cca643c..aec034d 100644 --- a/simple-visualization/qmppianowidget.hpp +++ b/simple-visualization/qmppianowidget.hpp @@ -6,22 +6,22 @@ class qmpPianoWidget : public QWidget { - Q_OBJECT - public: - explicit qmpPianoWidget(QWidget *parent = nullptr); - void setKeyState(int key,bool state); - void reset(); - QSize minimumSizeHint()const override; - bool hasHeightForWidth()const override; - int heightForWidth(int w)const override; + Q_OBJECT +public: + explicit qmpPianoWidget(QWidget *parent = nullptr); + void setKeyState(int key, bool state); + void reset(); + QSize minimumSizeHint()const override; + bool hasHeightForWidth()const override; + int heightForWidth(int w)const override; - protected: - void paintEvent(QPaintEvent *event)override; +protected: + void paintEvent(QPaintEvent *event)override; - private: - bool keystates[128]; - QRectF getKeyRect(int key); - void paintKey(QRectF keyrect,QColor keycolor); +private: + bool keystates[128]; + QRectF getKeyRect(int key); + void paintKey(QRectF keyrect, QColor keycolor); }; #endif // QMPPIANOWIDGET_HPP -- cgit v1.2.3