Mercurial > hg > svgui
comparison widgets/Thumbwheel.h @ 1406:a18e78b9c78b fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:52:27 +0000 |
parents | 13f5f84fbfad |
children | bbc3f537564c |
comparison
equal
deleted
inserted
replaced
1405:4c359c2b220c | 1406:a18e78b9c78b |
---|---|
45 const RangeMapper *getRangeMapper() const { return m_rangeMapper; } | 45 const RangeMapper *getRangeMapper() const { return m_rangeMapper; } |
46 double getMappedValue() const; | 46 double getMappedValue() const; |
47 | 47 |
48 void setShowToolTip(bool show); | 48 void setShowToolTip(bool show); |
49 | 49 |
50 QSize sizeHint() const; | 50 QSize sizeHint() const override; |
51 | 51 |
52 signals: | 52 signals: |
53 void valueChanged(int); | 53 void valueChanged(int); |
54 | 54 |
55 void mouseEntered(); | 55 void mouseEntered(); |
69 | 69 |
70 protected slots: | 70 protected slots: |
71 void updateMappedValue(int value); | 71 void updateMappedValue(int value); |
72 | 72 |
73 protected: | 73 protected: |
74 virtual void mousePressEvent(QMouseEvent *e); | 74 void mousePressEvent(QMouseEvent *e) override; |
75 virtual void mouseDoubleClickEvent(QMouseEvent *e); | 75 void mouseDoubleClickEvent(QMouseEvent *e) override; |
76 virtual void mouseMoveEvent(QMouseEvent *e); | 76 void mouseMoveEvent(QMouseEvent *e) override; |
77 virtual void mouseReleaseEvent(QMouseEvent *e); | 77 void mouseReleaseEvent(QMouseEvent *e) override; |
78 virtual void wheelEvent(QWheelEvent *e); | 78 void wheelEvent(QWheelEvent *e) override; |
79 virtual void paintEvent(QPaintEvent *e); | 79 void paintEvent(QPaintEvent *e) override; |
80 virtual void enterEvent(QEvent *); | 80 void enterEvent(QEvent *) override; |
81 virtual void leaveEvent(QEvent *); | 81 void leaveEvent(QEvent *) override; |
82 | 82 |
83 int m_min; | 83 int m_min; |
84 int m_max; | 84 int m_max; |
85 int m_default; | 85 int m_default; |
86 int m_value; | 86 int m_value; |