diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-09-29 22:13:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-29 15:23:25 -0700 |
commit | 574065b31430245a66808561b1b95139c4cd19f2 (patch) | |
tree | 844736a0bf6969af96953db49d247123ff92f787 /desktop-widgets/kmessagewidget.h | |
parent | d7e3d68f368a2febcc17b436e097a97a7c0f8ad3 (diff) | |
download | subsurface-574065b31430245a66808561b1b95139c4cd19f2.tar.gz |
Cleanup: reinstate override modifiers
This reverts commit 1c4a859c8d0b37b2e938209fe9c4d99e9758327a,
where the override modifiers were removed owing to the noisy
"inconsistent override modifiers" which is default-on in clang.
This warning was disabled in 77577f717f5aad38ea8c4c41c10c181486c4337f,
so we can reinstate the overrides.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/kmessagewidget.h')
-rw-r--r-- | desktop-widgets/kmessagewidget.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop-widgets/kmessagewidget.h b/desktop-widgets/kmessagewidget.h index 74568789f..61a034280 100644 --- a/desktop-widgets/kmessagewidget.h +++ b/desktop-widgets/kmessagewidget.h @@ -186,18 +186,18 @@ public: /** * Returns the preferred size of the message widget. */ - QSize sizeHint() const; + QSize sizeHint() const override; /** * Returns the minimum size of the message widget. */ - QSize minimumSizeHint() const; + QSize minimumSizeHint() const override; /** * Returns the required height for @p width. * @param width the width in pixels */ - int heightForWidth(int width) const; + int heightForWidth(int width) const override; /** * The icon shown on the left of the text. By default, no icon is shown. @@ -326,11 +326,11 @@ Q_SIGNALS: void showAnimationFinished(); protected: - void paintEvent(QPaintEvent *event); + void paintEvent(QPaintEvent *event) override; - bool event(QEvent *event); + bool event(QEvent *event) override; - void resizeEvent(QResizeEvent *event); + void resizeEvent(QResizeEvent *event) override; private: KMessageWidgetPrivate *const d; |