Mercurial > hg > svgui
comparison widgets/LevelPanWidget.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | a18e78b9c78b |
children | 27ea5d61b402 |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
45 bool includesMute() const; | 45 bool includesMute() const; |
46 | 46 |
47 /// Draw a suitably sized copy of the widget's contents to the given device | 47 /// Draw a suitably sized copy of the widget's contents to the given device |
48 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; | 48 void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; |
49 | 49 |
50 QSize sizeHint() const; | 50 QSize sizeHint() const override; |
51 | 51 |
52 public slots: | 52 public slots: |
53 /// Set level. The basic level range is [0,1] but the scale may go | 53 /// Set level. The basic level range is [0,1] but the scale may go |
54 /// higher. The value will be rounded. | 54 /// higher. The value will be rounded. |
55 void setLevel(float); | 55 void setLevel(float); |
68 | 68 |
69 /// Reset to default values | 69 /// Reset to default values |
70 void setToDefault(); | 70 void setToDefault(); |
71 | 71 |
72 // public so it can be called from LevelPanToolButton (ew) | 72 // public so it can be called from LevelPanToolButton (ew) |
73 virtual void wheelEvent(QWheelEvent *ev); | 73 void wheelEvent(QWheelEvent *ev) override; |
74 | 74 |
75 signals: | 75 signals: |
76 void levelChanged(float); // range [0,1] | 76 void levelChanged(float); // range [0,1] |
77 void panChanged(float); // range [-1,1] | 77 void panChanged(float); // range [-1,1] |
78 | 78 |
79 void mouseEntered(); | 79 void mouseEntered(); |
80 void mouseLeft(); | 80 void mouseLeft(); |
81 | 81 |
82 protected: | 82 protected: |
83 virtual void mousePressEvent(QMouseEvent *ev); | 83 void mousePressEvent(QMouseEvent *ev) override; |
84 virtual void mouseMoveEvent(QMouseEvent *ev); | 84 void mouseMoveEvent(QMouseEvent *ev) override; |
85 virtual void mouseReleaseEvent(QMouseEvent *ev); | 85 void mouseReleaseEvent(QMouseEvent *ev) override; |
86 virtual void paintEvent(QPaintEvent *ev); | 86 void paintEvent(QPaintEvent *ev) override; |
87 virtual void enterEvent(QEvent *); | 87 void enterEvent(QEvent *) override; |
88 virtual void leaveEvent(QEvent *); | 88 void leaveEvent(QEvent *) override; |
89 | 89 |
90 void emitLevelChanged(); | 90 void emitLevelChanged(); |
91 void emitPanChanged(); | 91 void emitPanChanged(); |
92 | 92 |
93 int m_minNotch; | 93 int m_minNotch; |