From 67a349cefcb72c7770b98bf645a7eca35695bb2b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Oct 2013 12:15:03 +0300 Subject: add final keyword to widgets files. --- src/gui/widgets/button.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/button.h') diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index e07a3bc1d..15567ea52 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -97,14 +97,14 @@ class Button final : public gcn::Button, /** * Draws the button. */ - void draw(gcn::Graphics *graphics) override; + void draw(gcn::Graphics *graphics) override final; /** * Update the alpha value to the button components. */ void updateAlpha(); - void mouseReleased(gcn::MouseEvent& mouseEvent) override; + void mouseReleased(gcn::MouseEvent& mouseEvent) override final; void setDescription(std::string text) { mDescription = text; } @@ -127,9 +127,9 @@ class Button final : public gcn::Button, void setPressed(bool b) { mPressed = b; } - void widgetResized(const gcn::Event &event) override; + void widgetResized(const gcn::Event &event) override final; - void widgetMoved(const gcn::Event &event) override; + void widgetMoved(const gcn::Event &event) override final; void loadImage(const std::string &imageName); @@ -139,9 +139,9 @@ class Button final : public gcn::Button, void setCaption(const std::string& caption); - void keyPressed(gcn::KeyEvent &keyEvent) override; + void keyPressed(gcn::KeyEvent &keyEvent) override final; - void keyReleased(gcn::KeyEvent &keyEvent) override; + void keyReleased(gcn::KeyEvent &keyEvent) override final; bool isPressed2() const A_WARN_UNUSED; -- cgit v1.2.3-60-g2f50