diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-09-30 15:27:57 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-11-04 10:07:47 +0300 |
commit | d3cae4df15598bf4797cd7fc03aced50bb5a25a1 (patch) | |
tree | d5889d6dc6bb99702eeec61337ba0544e94ff071 /src/libs/installer/aspectratiolabel.h | |
parent | 07f4848b5ee0cdc9407d9a0de4d30ca5e03403e0 (diff) |
Remove unused code blocks and functions
Results analyzed using cppcheck tools.
Also add Q_DECL_OVERRIDE to overwrited functions.
Change-Id: Iab5eb43206af0050c1dd84efb7ed860ab9594496
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/aspectratiolabel.h')
-rw-r--r-- | src/libs/installer/aspectratiolabel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/installer/aspectratiolabel.h b/src/libs/installer/aspectratiolabel.h index 28fc5aea4..6fbc774a2 100644 --- a/src/libs/installer/aspectratiolabel.h +++ b/src/libs/installer/aspectratiolabel.h @@ -44,12 +44,12 @@ class INSTALLER_EXPORT AspectRatioLabel : public QLabel public: explicit AspectRatioLabel(QWidget *parent = nullptr); - int heightForWidth(int w) const; - QSize sizeHint() const; + int heightForWidth(int w) const Q_DECL_OVERRIDE; + QSize sizeHint() const Q_DECL_OVERRIDE; public slots: void setPixmap (const QPixmap &pixmap); - void resizeEvent(QResizeEvent *event); + void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE; private: QPixmap scaledPixmap() const; |