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/tabbedarea.h | |
parent | 3dcf21babe03cee5080a25e787e1d7e72124288e (diff) | |
download | mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2 mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz mv-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip |
Add override keyword to most overriden methods.
Diffstat (limited to 'src/gui/widgets/tabbedarea.h')
-rw-r--r-- | src/gui/widgets/tabbedarea.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h index a616a9935..65eb09447 100644 --- a/src/gui/widgets/tabbedarea.h +++ b/src/gui/widgets/tabbedarea.h @@ -50,7 +50,7 @@ class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener /** * Draw the tabbed area. */ - void draw(gcn::Graphics *graphics); + void draw(gcn::Graphics *graphics) override; /** * Return how many tabs have been created. @@ -84,7 +84,7 @@ class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener * @param tab The tab widget for the tab. * @param widget The widget to view when the tab is selected. */ - void addTab(gcn::Tab* tab, gcn::Widget* widget); + void addTab(gcn::Tab* tab, gcn::Widget* widget) override; /** * Add a tab. Overridden since it needs to create an instance of Tab @@ -98,25 +98,25 @@ class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener /** * Overload the remove tab function as it's broken in guichan 0.8. */ - void removeTab(gcn::Tab *tab); + void removeTab(gcn::Tab *tab) override; void removeAll(); /** * Overload the logic function since it's broken in guichan 0.8. */ - void logic(); + void logic() override; int getContainerHeight() const { return mWidgetContainer->getHeight(); } - void setSelectedTab(gcn::Tab *tab); + void setSelectedTab(gcn::Tab *tab) override; void setSelectedTabByPos(int tab); void setSelectedTabByName(const std::string &name); - void widgetResized(const gcn::Event &event); + void widgetResized(const gcn::Event &event) override; /* void moveLeft(gcn::Tab *tab); @@ -125,11 +125,11 @@ class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener */ void adjustTabPositions(); - void action(const gcn::ActionEvent& actionEvent); + void action(const gcn::ActionEvent& actionEvent) override; // Inherited from MouseListener - void mousePressed(gcn::MouseEvent &mouseEvent); + void mousePressed(gcn::MouseEvent &mouseEvent) override; void enableScrollButtons(const bool enable); @@ -148,7 +148,7 @@ class TabbedArea final : public gcn::TabbedArea, public gcn::WidgetListener void fixSize() { adjustSize(); } - void keyPressed(gcn::KeyEvent& keyEvent); + void keyPressed(gcn::KeyEvent& keyEvent) override; void setBlockSwitching(bool b) { mBlockSwitching = b; } |