From d11827ca5879b21488c189fb09f32ecf635644ae Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 04 Sep 2003 12:51:49 +0000 Subject: Thanks to eilers for spotting this. The second osplitter correctly adds it widgets to the tab but is visible as well so better hide it --- diff --git a/libopie/big-screen/osplitter.cpp b/libopie/big-screen/osplitter.cpp index 47f856d..b09bc94 100644 --- a/libopie/big-screen/osplitter.cpp +++ b/libopie/big-screen/osplitter.cpp @@ -402,6 +402,8 @@ void OSplitter::removeFromTab( QWidget* wid ) { void OSplitter::changeTab() { /* if we're the owner of the tab widget */ if (m_tabWidget ) { + raise(); + show(); m_tabWidget->setGeometry( frameRect() ); return; } @@ -414,6 +416,7 @@ void OSplitter::changeTab() { */ OTabWidget *tab; if ( m_parentTab ) { + hide(); tab = m_parentTab; /* expensive but needed cause we're called from setTabWidget and resizeEvent*/ if (!m_container.isEmpty() ) { @@ -545,10 +548,8 @@ void OSplitter::setTabWidget( OTabWidget* wid) { changeVBox(); /* our own crap is added and children from change* */ - if (m_parentTab ) { - delete tab; - delete box; - } + delete tab; + delete box; } -- cgit v0.9.0.2