diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-23 20:53:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-23 22:01:57 +0300 |
commit | 0c3a1befd07924ce17ce2051eb45e60776480830 (patch) | |
tree | 8c2af022833d2a1ac17ffc0b8ed96d38ec555534 /src/gui/widgets | |
parent | f45dc867263a799c1af3bf8e64063bf795681c26 (diff) | |
download | manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.gz manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.bz2 manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.tar.xz manaverse-0c3a1befd07924ce17ce2051eb45e60776480830.zip |
Move most initialisation code in tabbedarea from constructor to postInit.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 7 |
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)); } |