Use override

This commit is contained in:
Jonas Kvinge
2020-06-15 21:55:05 +02:00
parent 72ede666d4
commit 651020388d
271 changed files with 1199 additions and 1231 deletions

View File

@@ -39,14 +39,14 @@ class FavoriteWidget : public QWidget {
// Change the value if different from the current one and then update display and emit FavoriteStateChanged signal
void SetFavorite(bool favorite);
QSize sizeHint() const;
QSize sizeHint() const override;
signals:
void FavoriteStateChanged(int, bool);
protected:
void paintEvent(QPaintEvent *e);
void mouseReleaseEvent(QMouseEvent *e);
void paintEvent(QPaintEvent *e) override;
void mouseReleaseEvent(QMouseEvent *e) override;
private:
static const int kStarSize;