diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-19 12:25:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:22 +0300 |
commit | 15c19f19e86f94bc28cd0f2b80f0c5be394479fa (patch) | |
tree | 10339ba090fb0d35790d963e74b0526959daab31 /src/gui/widgets | |
parent | 589e377f6159268bb3a3ec072ffce30ce4ad5422 (diff) | |
download | manaplus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.gz manaplus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.bz2 manaplus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.xz manaplus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.zip |
move virtual member calls from tabbedarea constuctor into postInit.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/tabbedarea.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 721e0b653..5044d2758 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -68,7 +68,10 @@ TabbedArea::TabbedArea(const Widget2 *const widget) : mArrowButton[0] = new Button(this, "<", "shift_left", this); mArrowButton[1] = new Button(this, ">", "shift_right", this); +} +void TabbedArea::postInit() +{ widgetResized(gcn::Event(nullptr)); } @@ -77,6 +80,7 @@ TabbedArea::~TabbedArea() if (gui) gui->removeDragged(this); + // +++ virtual method calls remove(mTabContainer); remove(mWidgetContainer); diff --git a/src/gui/widgets/tabbedarea.h b/src/gui/widgets/tabbedarea.h index 6b20d59f4..115d41095 100644 --- a/src/gui/widgets/tabbedarea.h +++ b/src/gui/widgets/tabbedarea.h @@ -55,6 +55,8 @@ class TabbedArea final : public Widget2, ~TabbedArea(); + void postInit(); + /** * Draw the tabbed area. */ |