1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

More overrides

This commit is contained in:
David Rosca 2018-02-07 12:04:02 +01:00
parent 75b072ec88
commit d8174fb079
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 5 additions and 5 deletions

View File

@ -27,8 +27,8 @@ class FALKON_EXPORT ProxyStyle : public QProxyStyle
public: public:
explicit ProxyStyle(); explicit ProxyStyle();
int styleHint(StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) 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; 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; void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget = nullptr) const override;
QString name() const; QString name() const;

View File

@ -59,7 +59,7 @@ public:
QRect scrollBarGeometry(Qt::Orientation orientation) const; QRect scrollBarGeometry(Qt::Orientation orientation) const;
void addNotification(QWidget* notif); void addNotification(QWidget* notif);
bool eventFilter(QObject *obj, QEvent *event); bool eventFilter(QObject *obj, QEvent *event) override;
QWidget *inputWidget() const; QWidget *inputWidget() const;
virtual QWidget *overlayWidget() = 0; virtual QWidget *overlayWidget() = 0;
@ -142,8 +142,8 @@ protected slots:
protected: protected:
void showEvent(QShowEvent *event) override; void showEvent(QShowEvent *event) override;
void resizeEvent(QResizeEvent *event); void resizeEvent(QResizeEvent *event) override;
void contextMenuEvent(QContextMenuEvent *event); void contextMenuEvent(QContextMenuEvent *event) override;
virtual void _wheelEvent(QWheelEvent *event); virtual void _wheelEvent(QWheelEvent *event);
virtual void _mousePressEvent(QMouseEvent *event); virtual void _mousePressEvent(QMouseEvent *event);