Mercurial > hg > svgui
comparison widgets/AudioDial.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | 05d614f6e46d |
children | e5464dc2f6cf |
comparison
equal
deleted
inserted
replaced
1413:0930a27ebea2 | 1414:fa986b91d77f |
---|---|
10 published by the Free Software Foundation; either version 2 of the | 10 published by the Free Software Foundation; either version 2 of the |
11 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
12 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
13 */ | 13 */ |
14 | 14 |
15 #ifndef _AUDIO_DIAL_H_ | 15 #ifndef SV_AUDIO_DIAL_H |
16 #define _AUDIO_DIAL_H_ | 16 #define SV_AUDIO_DIAL_H |
17 | 17 |
18 /** | 18 /** |
19 * A rotary dial widget. | 19 * A rotary dial widget. |
20 * | 20 * |
21 * Based on an original design by Thorsten Wilms. | 21 * Based on an original design by Thorsten Wilms. |
113 | 113 |
114 void setToDefault(); | 114 void setToDefault(); |
115 | 115 |
116 protected: | 116 protected: |
117 void drawTick(QPainter &paint, double angle, int size, bool internal); | 117 void drawTick(QPainter &paint, double angle, int size, bool internal); |
118 virtual void paintEvent(QPaintEvent *); | 118 void paintEvent(QPaintEvent *) override; |
119 | 119 |
120 // Alternate mouse behavior event handlers. | 120 // Alternate mouse behavior event handlers. |
121 virtual void mousePressEvent(QMouseEvent *pMouseEvent); | 121 void mousePressEvent(QMouseEvent *pMouseEvent) override; |
122 virtual void mouseMoveEvent(QMouseEvent *pMouseEvent); | 122 void mouseMoveEvent(QMouseEvent *pMouseEvent) override; |
123 virtual void mouseReleaseEvent(QMouseEvent *pMouseEvent); | 123 void mouseReleaseEvent(QMouseEvent *pMouseEvent) override; |
124 virtual void mouseDoubleClickEvent(QMouseEvent *pMouseEvent); | 124 void mouseDoubleClickEvent(QMouseEvent *pMouseEvent) override; |
125 virtual void enterEvent(QEvent *); | 125 void enterEvent(QEvent *) override; |
126 virtual void leaveEvent(QEvent *); | 126 void leaveEvent(QEvent *) override; |
127 | 127 |
128 protected slots: | 128 protected slots: |
129 void updateMappedValue(int value); | 129 void updateMappedValue(int value); |
130 | 130 |
131 private: | 131 private: |