diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-22 02:34:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-22 21:22:21 +0300 |
commit | 4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch) | |
tree | 7a2bbae95b5f6642731f2a1257913baad71d028d /src/gui/widgets/setupitem.h | |
parent | 3dcf21babe03cee5080a25e787e1d7e72124288e (diff) | |
download | manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2 manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz manaverse-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip |
Add override keyword to most overriden methods.
Diffstat (limited to 'src/gui/widgets/setupitem.h')
-rw-r--r-- | src/gui/widgets/setupitem.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index d8affadd1..f36dc2534 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -88,7 +88,7 @@ class SetupItem : public gcn::ActionListener virtual std::string getActionEventId(); - virtual void action(const gcn::ActionEvent &event); + virtual void action(const gcn::ActionEvent &event) override; virtual void action(); @@ -145,9 +145,9 @@ class SetupItemCheckBox final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; protected: CheckBox *mCheckBox; @@ -170,13 +170,13 @@ class SetupItemTextField final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; - void apply(std::string eventName); + void apply(std::string eventName) override; protected: HorizontContainer *mHorizont; @@ -207,13 +207,13 @@ class SetupItemIntTextField final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; - void apply(std::string eventName); + void apply(std::string eventName) override; protected: HorizontContainer *mHorizont; @@ -236,13 +236,13 @@ class SetupItemLabel final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; - void apply(std::string eventName); + void apply(std::string eventName) override; protected: Label *mLabel; @@ -266,9 +266,9 @@ class SetupItemDropDown final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; protected: HorizontContainer *mHorizont; @@ -299,11 +299,11 @@ class SetupItemSlider final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; void apply(std::string eventName); @@ -346,13 +346,13 @@ class SetupItemSlider2 final : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; - void apply(std::string eventName); + void apply(std::string eventName) override; void setInvertValue(const int v); @@ -394,13 +394,13 @@ class SetupItemSliderList : public SetupItem void createControls(); - void fromWidget(); + void fromWidget() override; - void toWidget(); + void toWidget() override; - virtual void action(const gcn::ActionEvent &event); + virtual void action(const gcn::ActionEvent &event) override; - void apply(std::string eventName); + void apply(std::string eventName) override; virtual void addMoreControls() = 0; @@ -422,9 +422,9 @@ class SetupItemSound final : public SetupItemSliderList const int width = 150, const bool onTheFly = false, const bool mainConfig = true); - void action(const gcn::ActionEvent &event); + void action(const gcn::ActionEvent &event) override; - void addMoreControls(); + void addMoreControls() override; protected: Button *mButton; |