Commit 2398f8b2 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use override

parent 9cbfb4fe
......@@ -183,7 +183,7 @@ class KDECORATIONS2_EXPORT DecoratedClient : public QObject
public:
DecoratedClient() = delete;
~DecoratedClient();
~DecoratedClient() override;
bool isActive() const;
QString caption() const;
int desktop() const;
......
......@@ -103,7 +103,7 @@ class KDECORATIONS2_EXPORT Decoration : public QObject
**/
Q_PROPERTY(bool opaque READ isOpaque NOTIFY opaqueChanged)
public:
virtual ~Decoration();
~Decoration() override;
/**
* The DecoratedClient for this Decoration.
......@@ -164,7 +164,7 @@ public:
**/
virtual void paint(QPainter *painter, const QRect &repaintArea) = 0;
virtual bool event(QEvent *event) override;
bool event(QEvent *event) override;
public Q_SLOTS:
void requestClose();
......
......@@ -99,7 +99,7 @@ class KDECORATIONS2_EXPORT DecorationButton : public QObject
**/
Q_PROPERTY(Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged)
public:
virtual ~DecorationButton();
~DecorationButton() override;
QRectF geometry() const;
QSizeF size() const;
......@@ -129,7 +129,7 @@ public:
QPointer<Decoration> decoration() const;
virtual bool event(QEvent *event) override;
bool event(QEvent *event) override;
public Q_SLOTS:
void setEnabled(bool enabled);
......
......@@ -70,7 +70,7 @@ public:
};
explicit DecorationButtonGroup(Position type, Decoration *parent, std::function<DecorationButton*(DecorationButtonType, Decoration*, QObject*)> buttonCreator);
explicit DecorationButtonGroup(Decoration *parent);
virtual ~DecorationButtonGroup();
~DecorationButtonGroup() override;
/**
* Paints the DecorationButtonGroup. This method should normally be invoked from the
......
......@@ -101,7 +101,7 @@ class KDECORATIONS2_EXPORT DecorationSettings : public QObject
Q_PROPERTY(int largeSpacing READ largeSpacing NOTIFY spacingChanged)
public:
explicit DecorationSettings(DecorationBridge *bridge, QObject *parent = nullptr);
virtual ~DecorationSettings();
~DecorationSettings() override;
bool isOnAllDesktopsAvailable() const;
bool isAlphaChannelSupported() const;
bool isCloseOnDoubleClickOnMenu() const;
......
......@@ -107,7 +107,7 @@ class KDECORATIONS2_EXPORT DecorationShadow : public QObject
Q_PROPERTY(QMargins padding READ padding WRITE setPadding NOTIFY paddingChanged)
public:
explicit DecorationShadow();
virtual ~DecorationShadow();
~DecorationShadow() override;
QImage shadow() const;
QRect innerShadowRect() const;
......
......@@ -52,7 +52,7 @@ class KDECORATIONS_PRIVATE_EXPORT DecorationBridge : public QObject
{
Q_OBJECT
public:
virtual ~DecorationBridge();
~DecorationBridge() override;
virtual std::unique_ptr<DecoratedClientPrivate> createClient(DecoratedClient *client, Decoration *decoration) = 0;
virtual void update(Decoration *decoration, const QRect &geometry) = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment