summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 12:25:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commit15c19f19e86f94bc28cd0f2b80f0c5be394479fa (patch)
tree10339ba090fb0d35790d963e74b0526959daab31 /src/gui/widgets/tabbedarea.cpp
parent589e377f6159268bb3a3ec072ffce30ce4ad5422 (diff)
downloadplus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.gz
plus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.bz2
plus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.tar.xz
plus-15c19f19e86f94bc28cd0f2b80f0c5be394479fa.zip
move virtual member calls from tabbedarea constuctor into postInit.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r--src/gui/widgets/tabbedarea.cpp4
1 files changed, 4 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);