summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-23 20:53:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-23 22:01:57 +0300
commit0c3a1befd07924ce17ce2051eb45e60776480830 (patch)
tree8c2af022833d2a1ac17ffc0b8ed96d38ec555534
parentf45dc867263a799c1af3bf8e64063bf795681c26 (diff)
downloadmanaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.gz
manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.bz2
manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.xz
manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.zip
Move most initialisation code in tabbedarea from constructor to postInit.
-rw-r--r--src/gui/widgets/tabbedarea.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp
index 2be152d4a..081b61aae 100644
--- a/src/gui/widgets/tabbedarea.cpp
+++ b/src/gui/widgets/tabbedarea.cpp
@@ -101,6 +101,10 @@ TabbedArea::TabbedArea(const Widget2 *const widget) :
setFocusable(true);
addKeyListener(this);
addMouseListener(this);
+}
+
+void TabbedArea::postInit()
+{
mTabContainer->setOpaque(false);
add(mTabContainer);
@@ -111,10 +115,7 @@ 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(Event(nullptr));
}