Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/widgets/LevelPanWidget.h Wed Jan 09 14:41:52 2019 +0000 +++ b/widgets/LevelPanWidget.h Wed Jan 09 15:24:51 2019 +0000 @@ -47,7 +47,7 @@ /// Draw a suitably sized copy of the widget's contents to the given device void renderTo(QPaintDevice *, QRectF, bool asIfEditable) const; - QSize sizeHint() const; + QSize sizeHint() const override; public slots: /// Set level. The basic level range is [0,1] but the scale may go @@ -70,7 +70,7 @@ void setToDefault(); // public so it can be called from LevelPanToolButton (ew) - virtual void wheelEvent(QWheelEvent *ev); + void wheelEvent(QWheelEvent *ev) override; signals: void levelChanged(float); // range [0,1] @@ -80,12 +80,12 @@ void mouseLeft(); protected: - virtual void mousePressEvent(QMouseEvent *ev); - virtual void mouseMoveEvent(QMouseEvent *ev); - virtual void mouseReleaseEvent(QMouseEvent *ev); - virtual void paintEvent(QPaintEvent *ev); - virtual void enterEvent(QEvent *); - virtual void leaveEvent(QEvent *); + void mousePressEvent(QMouseEvent *ev) override; + void mouseMoveEvent(QMouseEvent *ev) override; + void mouseReleaseEvent(QMouseEvent *ev) override; + void paintEvent(QPaintEvent *ev) override; + void enterEvent(QEvent *) override; + void leaveEvent(QEvent *) override; void emitLevelChanged(); void emitPanChanged();