Examples: Remove more redundant virtual specifiers for overriders

Change-Id: I3e378c656a2651fb7031b6cf6a6939dfc5576519
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Alexander Volkov 2016-11-27 12:45:37 +03:00 committed by Simon Hausmann
parent a103992f49
commit c050a1bdea
3 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ public:
void begin(int face);
// end rendering
void end();
virtual bool failed() const override {return m_failed || m_fbo.failed();}
bool failed() const override { return m_failed || m_fbo.failed(); }
static void getViewMatrix(QMatrix4x4& mat, int face);
static void getProjectionMatrix(QMatrix4x4& mat, float nearZ, float farZ);

View File

@ -81,7 +81,7 @@ class ColorEdit : public ParameterEdit
public:
ColorEdit(QRgb initialColor, int id);
QRgb color() const {return m_color;}
virtual void emitChange() override { emit colorChanged(m_color, m_id); }
void emitChange() override { emit colorChanged(m_color, m_id); }
public slots:
void editDone();
signals:
@ -103,7 +103,7 @@ class FloatEdit : public ParameterEdit
public:
FloatEdit(float initialValue, int id);
float value() const {return m_value;}
virtual void emitChange() override { emit valueChanged(m_value, m_id); }
void emitChange() override { emit valueChanged(m_value, m_id); }
public slots:
void editDone();
signals:

View File

@ -90,7 +90,7 @@ public:
PongTransition() {}
protected:
virtual bool eventTest(QEvent *e) override {
bool eventTest(QEvent *e) override {
return (e->type() == QEvent::User+3);
}
void onTransition(QEvent *) override
@ -108,7 +108,7 @@ public:
PingTransition() {}
protected:
virtual bool eventTest(QEvent *e) override {
bool eventTest(QEvent *e) override {
return (e->type() == QEvent::User+2);
}
void onTransition(QEvent *) override