summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/aspectratiolabel.h
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-19 15:58:32 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-01-21 12:51:35 +0000
commitba09df11ecb7b42dd1c2e9b85d5ebd9edf90984d (patch)
treedde783715139f194ab6f30c01a93b524fc255286 /src/libs/installer/aspectratiolabel.h
parent6233bf7d5645f9b8b4dcd99b1d3691ed15f9829c (diff)
Make 'override' specifier usage consistent
Add where missing. Replace occurrences of Q_DECL_OVERRIDE macro, building IFW requires a C++11 compatible compiler so the language specifier is preferred. Change-Id: Idb75e2813d26b9da85e03891f0ae9537c6524c56 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/aspectratiolabel.h')
-rw-r--r--src/libs/installer/aspectratiolabel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/installer/aspectratiolabel.h b/src/libs/installer/aspectratiolabel.h
index 6fbc774a2..82ce0ebbd 100644
--- a/src/libs/installer/aspectratiolabel.h
+++ b/src/libs/installer/aspectratiolabel.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2020 The Qt Company Ltd.
+** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -44,12 +44,12 @@ class INSTALLER_EXPORT AspectRatioLabel : public QLabel
public:
explicit AspectRatioLabel(QWidget *parent = nullptr);
- int heightForWidth(int w) const Q_DECL_OVERRIDE;
- QSize sizeHint() const Q_DECL_OVERRIDE;
+ int heightForWidth(int w) const override;
+ QSize sizeHint() const override;
public slots:
void setPixmap (const QPixmap &pixmap);
- void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
+ void resizeEvent(QResizeEvent *event) override;
private:
QPixmap scaledPixmap() const;