[kwin] Add override to all virtual methods in EffectFrameImpl
In exchange virtual keyword is removed.
This commit is contained in:
parent
7532c0f54b
commit
c130db39f2
1 changed files with 19 additions and 19 deletions
38
effects.h
38
effects.h
|
@ -366,22 +366,22 @@ public:
|
||||||
Qt::Alignment alignment = Qt::AlignCenter);
|
Qt::Alignment alignment = Qt::AlignCenter);
|
||||||
virtual ~EffectFrameImpl();
|
virtual ~EffectFrameImpl();
|
||||||
|
|
||||||
virtual void free();
|
void free() override;
|
||||||
virtual void render(QRegion region = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0);
|
void render(QRegion region = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0) override;
|
||||||
virtual Qt::Alignment alignment() const;
|
Qt::Alignment alignment() const override;
|
||||||
virtual void setAlignment(Qt::Alignment alignment);
|
void setAlignment(Qt::Alignment alignment) override;
|
||||||
virtual const QFont& font() const;
|
const QFont& font() const override;
|
||||||
virtual void setFont(const QFont& font);
|
void setFont(const QFont& font) override;
|
||||||
virtual const QRect& geometry() const;
|
const QRect& geometry() const override;
|
||||||
virtual void setGeometry(const QRect& geometry, bool force = false);
|
void setGeometry(const QRect& geometry, bool force = false) override;
|
||||||
virtual const QIcon& icon() const override;
|
const QIcon& icon() const override;
|
||||||
virtual void setIcon(const QIcon& icon) override;
|
void setIcon(const QIcon& icon) override;
|
||||||
virtual const QSize& iconSize() const;
|
const QSize& iconSize() const override;
|
||||||
virtual void setIconSize(const QSize& size);
|
void setIconSize(const QSize& size) override;
|
||||||
virtual void setPosition(const QPoint& point);
|
void setPosition(const QPoint& point) override;
|
||||||
virtual const QString& text() const;
|
const QString& text() const override;
|
||||||
virtual void setText(const QString& text);
|
void setText(const QString& text) override;
|
||||||
virtual EffectFrameStyle style() const {
|
EffectFrameStyle style() const override {
|
||||||
return m_style;
|
return m_style;
|
||||||
};
|
};
|
||||||
Plasma::FrameSvg& frame() {
|
Plasma::FrameSvg& frame() {
|
||||||
|
@ -391,13 +391,13 @@ public:
|
||||||
return m_static;
|
return m_static;
|
||||||
};
|
};
|
||||||
void finalRender(QRegion region, double opacity, double frameOpacity) const;
|
void finalRender(QRegion region, double opacity, double frameOpacity) const;
|
||||||
virtual void setShader(GLShader* shader) {
|
void setShader(GLShader* shader) override {
|
||||||
m_shader = shader;
|
m_shader = shader;
|
||||||
}
|
}
|
||||||
virtual GLShader* shader() const {
|
GLShader* shader() const override {
|
||||||
return m_shader;
|
return m_shader;
|
||||||
}
|
}
|
||||||
virtual void setSelection(const QRect& selection);
|
void setSelection(const QRect& selection) override;
|
||||||
const QRect& selection() const {
|
const QRect& selection() const {
|
||||||
return m_selectionGeometry;
|
return m_selectionGeometry;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue