-rw-r--r-- | libopie/otabwidget.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 6ef4034..aaf14ce 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp @@ -68,5 +68,5 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi widgetStack = new QWidgetStack( this, "widgetstack" ); - widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); + widgetStack->setFrameStyle( QFrame::NoFrame ); widgetStack->setLineWidth( style().defaultFrameWidth() ); @@ -133,4 +133,5 @@ void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &lab widgetStack->addWidget( child, tabid ); widgetStack->raiseWidget( child ); + widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); OTabInfo *tabinfo = new OTabInfo( tabid, child, icon, label ); @@ -165,4 +166,9 @@ void OTabWidget::removePage( QWidget *childwidget ) delete tab; currentTab = tabs.current(); + if ( !currentTab ) + { + widgetStack->setFrameStyle( QFrame::NoFrame ); + } + setUpLayout(); } |