diff options
author | Bastien Bouclet | 2018-11-14 20:25:00 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-11-14 20:27:41 +0100 |
commit | c1bd6a250d728912b5cacdbdd247f6107d18c6ad (patch) | |
tree | a885eb3dfc76251ccb57d1f2443cd56353da90b1 /gui/widgets | |
parent | 7c570d9b253206e906fc9cc38c20083e043a0ed8 (diff) | |
download | scummvm-rg350-c1bd6a250d728912b5cacdbdd247f6107d18c6ad.tar.gz scummvm-rg350-c1bd6a250d728912b5cacdbdd247f6107d18c6ad.tar.bz2 scummvm-rg350-c1bd6a250d728912b5cacdbdd247f6107d18c6ad.zip |
GUI: Add some override markers
Diffstat (limited to 'gui/widgets')
-rw-r--r-- | gui/widgets/scrollcontainer.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gui/widgets/scrollcontainer.h b/gui/widgets/scrollcontainer.h index 01d9a195fa..c034cab4fd 100644 --- a/gui/widgets/scrollcontainer.h +++ b/gui/widgets/scrollcontainer.h @@ -41,31 +41,31 @@ class ScrollContainerWidget: public Widget, public CommandSender { public: ScrollContainerWidget(GuiObject *boss, int x, int y, int w, int h, uint32 reflowCmd = 0); ScrollContainerWidget(GuiObject *boss, const Common::String &name, uint32 reflowCmd = 0); - ~ScrollContainerWidget(); + ~ScrollContainerWidget() override; void init(); - virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); - virtual void reflowLayout(); + void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) override; + void reflowLayout() override; - virtual bool containsWidget(Widget *) const; + bool containsWidget(Widget *) const override; Common::Rect getClipRect() const override; - void handleMouseWheel(int x, int y, int direction); - void setBackgroundType(ThemeEngine::DialogBackground backgroundType); + void handleMouseWheel(int x, int y, int direction) override; + protected: // We overload getChildY to make sure child widgets are positioned correctly. // Essentially this compensates for the space taken up by the tab title header. - virtual int16 getChildX() const; - virtual int16 getChildY() const; - virtual uint16 getWidth() const; - virtual uint16 getHeight() const; + int16 getChildX() const override; + int16 getChildY() const override; + uint16 getWidth() const override; + uint16 getHeight() const override; - virtual void drawWidget(); + void drawWidget() override; - virtual Widget *findWidget(int x, int y); + Widget *findWidget(int x, int y) override; }; } // End of namespace GUI |