From 0c3a1befd07924ce17ce2051eb45e60776480830 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 May 2015 20:53:35 +0300 Subject: Move most initialisation code in tabbedarea from constructor to postInit. --- src/gui/widgets/tabbedarea.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets') 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)); } -- cgit v1.2.3-70-g09d2