Mercurial > hg > svgui
comparison view/Overview.h @ 1406:a18e78b9c78b fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:52:27 +0000 |
parents | 97c68bffbda6 |
children | e540aa5d89cd |
comparison
equal
deleted
inserted
replaced
1405:4c359c2b220c | 1406:a18e78b9c78b |
---|---|
36 Overview(QWidget *parent = 0); | 36 Overview(QWidget *parent = 0); |
37 | 37 |
38 void registerView(View *view); | 38 void registerView(View *view); |
39 void unregisterView(View *view); | 39 void unregisterView(View *view); |
40 | 40 |
41 virtual QString getPropertyContainerIconName() const { return "panner"; } | 41 QString getPropertyContainerIconName() const override { return "panner"; } |
42 | 42 |
43 public slots: | 43 public slots: |
44 virtual void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame); | 44 void modelChangedWithin(sv_frame_t startFrame, sv_frame_t endFrame) override; |
45 virtual void modelReplaced(); | 45 void modelReplaced() override; |
46 | 46 |
47 virtual void globalCentreFrameChanged(sv_frame_t); | 47 void globalCentreFrameChanged(sv_frame_t) override; |
48 virtual void viewCentreFrameChanged(View *, sv_frame_t); | 48 void viewCentreFrameChanged(View *, sv_frame_t) override; |
49 virtual void viewZoomLevelChanged(View *, ZoomLevel, bool); | 49 void viewZoomLevelChanged(View *, ZoomLevel, bool) override; |
50 virtual void viewManagerPlaybackFrameChanged(sv_frame_t); | 50 void viewManagerPlaybackFrameChanged(sv_frame_t) override; |
51 | 51 |
52 virtual void setBoxColour(QColor); | 52 virtual void setBoxColour(QColor); |
53 | 53 |
54 protected: | 54 protected: |
55 virtual void paintEvent(QPaintEvent *e); | 55 void paintEvent(QPaintEvent *e) override; |
56 virtual void mousePressEvent(QMouseEvent *e); | 56 void mousePressEvent(QMouseEvent *e) override; |
57 virtual void mouseReleaseEvent(QMouseEvent *e); | 57 void mouseReleaseEvent(QMouseEvent *e) override; |
58 virtual void mouseMoveEvent(QMouseEvent *e); | 58 void mouseMoveEvent(QMouseEvent *e) override; |
59 virtual void mouseDoubleClickEvent(QMouseEvent *e); | 59 void mouseDoubleClickEvent(QMouseEvent *e) override; |
60 virtual void enterEvent(QEvent *); | 60 void enterEvent(QEvent *) override; |
61 virtual void leaveEvent(QEvent *); | 61 void leaveEvent(QEvent *) override; |
62 virtual bool shouldLabelSelections() const { return false; } | 62 bool shouldLabelSelections() const override { return false; } |
63 | 63 |
64 QColor getFillWithin() const; | 64 QColor getFillWithin() const; |
65 QColor getFillWithout() const; | 65 QColor getFillWithout() const; |
66 | 66 |
67 QPoint m_clickPos; | 67 QPoint m_clickPos; |