Mercurial > hg > svgui
diff view/AlignmentView.h @ 1406:a18e78b9c78b fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:52:27 +0000 |
parents | 57d192e26331 |
children | c5589d94b731 |
line wrap: on
line diff
--- a/view/AlignmentView.h Thu Nov 22 14:55:38 2018 +0000 +++ b/view/AlignmentView.h Mon Nov 26 13:52:27 2018 +0000 @@ -24,21 +24,21 @@ public: AlignmentView(QWidget *parent = 0); - virtual QString getPropertyContainerIconName() const { return "alignment"; } + QString getPropertyContainerIconName() const override { return "alignment"; } void setViewAbove(View *view); void setViewBelow(View *view); public slots: - virtual void globalCentreFrameChanged(sv_frame_t); - virtual void viewCentreFrameChanged(View *, sv_frame_t); + void globalCentreFrameChanged(sv_frame_t) override; + void viewCentreFrameChanged(View *, sv_frame_t) override; virtual void viewAboveZoomLevelChanged(ZoomLevel, bool); virtual void viewBelowZoomLevelChanged(ZoomLevel, bool); - virtual void viewManagerPlaybackFrameChanged(sv_frame_t); + void viewManagerPlaybackFrameChanged(sv_frame_t) override; protected: - virtual void paintEvent(QPaintEvent *e); - virtual bool shouldLabelSelections() const { return false; } + void paintEvent(QPaintEvent *e) override; + bool shouldLabelSelections() const override { return false; } std::vector<sv_frame_t> getKeyFrames(); std::vector<sv_frame_t> getDefaultKeyFrames();