aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/qmppianowidget.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-07 01:20:03 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-07 01:20:03 +0800
commit048e57b723c946d96aca260e26ba60dd380fde90 (patch)
treef8fe6d361e33235d81248105a63fc568b7c956d8 /simple-visualization/qmppianowidget.hpp
parentb2ef363f49db70219ac1eaebb7d69dcdade8d60b (diff)
downloadQMidiPlayer-048e57b723c946d96aca260e26ba60dd380fde90.tar.xz
Colorful keyboards.
Diffstat (limited to 'simple-visualization/qmppianowidget.hpp')
-rw-r--r--simple-visualization/qmppianowidget.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/simple-visualization/qmppianowidget.hpp b/simple-visualization/qmppianowidget.hpp
index 22af6ce..cca643c 100644
--- a/simple-visualization/qmppianowidget.hpp
+++ b/simple-visualization/qmppianowidget.hpp
@@ -12,6 +12,8 @@ class qmpPianoWidget : public QWidget
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;