summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-22 02:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-22 21:22:21 +0300
commit4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch)
tree7a2bbae95b5f6642731f2a1257913baad71d028d /src/gui/inventorywindow.h
parent3dcf21babe03cee5080a25e787e1d7e72124288e (diff)
downloadmanaverse-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/inventorywindow.h')
-rw-r--r--src/gui/inventorywindow.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index f06ee487e..75a5df7ec 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -76,7 +76,7 @@ class InventoryWindow final : public Window,
/**
* Called when receiving actions from the widgets.
*/
- void action(const gcn::ActionEvent &event);
+ void action(const gcn::ActionEvent &event) override;
/**
* Returns the selected item.
@@ -91,27 +91,27 @@ class InventoryWindow final : public Window,
/**
* Handles closing of the window
*/
- void widgetHidden(const gcn::Event &event);
+ void widgetHidden(const gcn::Event &event) override;
/**
* Handles the mouse clicks.
*/
- void mouseClicked(gcn::MouseEvent &event);
+ void mouseClicked(gcn::MouseEvent &event) override;
/**
* Handles the key presses.
*/
- void keyPressed(gcn::KeyEvent &event);
+ void keyPressed(gcn::KeyEvent &event) override;
/**
* Handles the key releases.
*/
- void keyReleased(gcn::KeyEvent &event);
+ void keyReleased(gcn::KeyEvent &event) override;
/**
* Updates labels to currently selected item.
*/
- void valueChanged(const gcn::SelectionEvent &event);
+ void valueChanged(const gcn::SelectionEvent &event) override;
/**
* Sets whether the split button should be shown.
@@ -137,13 +137,14 @@ class InventoryWindow final : public Window,
void updateDropButton();
- void processEvent(Channels channel, const DepricatedEvent &event);
+ void processEvent(Channels channel,
+ const DepricatedEvent &event) override;
void updateButtons(const Item *item = nullptr);
bool isInputFocused() const;
- void widgetResized(const gcn::Event &event);
+ void widgetResized(const gcn::Event &event) override;
static bool isAnyInputFocused();