author | harlekin <harlekin> | 2002-10-15 12:00:44 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-15 12:00:44 (UTC) |
commit | de2932def475a128e68fff23395b0ed5c41026f5 (patch) (unidiff) | |
tree | fc526521b4540535cf80fd222c15c4054c481aca /libopie/otabwidget.cpp | |
parent | b6fb59110629634056be3dd5c3091e6ed3271fd0 (diff) | |
download | opie-de2932def475a128e68fff23395b0ed5c41026f5.zip opie-de2932def475a128e68fff23395b0ed5c41026f5.tar.gz opie-de2932def475a128e68fff23395b0ed5c41026f5.tar.bz2 |
update by drw to make appearance nicer when no tab is added
-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 | |||
@@ -69,3 +69,3 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi | |||
69 | widgetStack = new QWidgetStack( this, "widgetstack" ); | 69 | widgetStack = new QWidgetStack( this, "widgetstack" ); |
70 | widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); | 70 | widgetStack->setFrameStyle( QFrame::NoFrame ); |
71 | widgetStack->setLineWidth( style().defaultFrameWidth() ); | 71 | widgetStack->setLineWidth( style().defaultFrameWidth() ); |
@@ -134,2 +134,3 @@ void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &lab | |||
134 | widgetStack->raiseWidget( child ); | 134 | widgetStack->raiseWidget( child ); |
135 | widgetStack->setFrameStyle( QFrame::StyledPanel | QFrame::Raised ); | ||
135 | 136 | ||
@@ -166,2 +167,7 @@ void OTabWidget::removePage( QWidget *childwidget ) | |||
166 | currentTab = tabs.current(); | 167 | currentTab = tabs.current(); |
168 | if ( !currentTab ) | ||
169 | { | ||
170 | widgetStack->setFrameStyle( QFrame::NoFrame ); | ||
171 | } | ||
172 | |||
167 | setUpLayout(); | 173 | setUpLayout(); |