From d8174fb0790f121fb9d7a8a4104ff1f5a8e54a84 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 7 Feb 2018 12:04:02 +0100 Subject: [PATCH] More overrides --- src/lib/app/proxystyle.h | 4 ++-- src/lib/webengine/webview.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/app/proxystyle.h b/src/lib/app/proxystyle.h index f2b3513e4..fce6479ad 100644 --- a/src/lib/app/proxystyle.h +++ b/src/lib/app/proxystyle.h @@ -27,8 +27,8 @@ class FALKON_EXPORT ProxyStyle : public QProxyStyle public: explicit ProxyStyle(); - int styleHint(StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - int pixelMetric(PixelMetric metric, const QStyleOption* option, const QWidget* widget) const; + int styleHint(StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const override; + int pixelMetric(PixelMetric metric, const QStyleOption* option, const QWidget* widget) const override; void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override; QString name() const; diff --git a/src/lib/webengine/webview.h b/src/lib/webengine/webview.h index a0a4af4a2..2cf9ee553 100644 --- a/src/lib/webengine/webview.h +++ b/src/lib/webengine/webview.h @@ -59,7 +59,7 @@ public: QRect scrollBarGeometry(Qt::Orientation orientation) const; void addNotification(QWidget* notif); - bool eventFilter(QObject *obj, QEvent *event); + bool eventFilter(QObject *obj, QEvent *event) override; QWidget *inputWidget() const; virtual QWidget *overlayWidget() = 0; @@ -142,8 +142,8 @@ protected slots: protected: void showEvent(QShowEvent *event) override; - void resizeEvent(QResizeEvent *event); - void contextMenuEvent(QContextMenuEvent *event); + void resizeEvent(QResizeEvent *event) override; + void contextMenuEvent(QContextMenuEvent *event) override; virtual void _wheelEvent(QWheelEvent *event); virtual void _mousePressEvent(QMouseEvent *event);