From 2630b8b81ddf6904379eedab4e3c307ee6399863 Mon Sep 17 00:00:00 2001 From: drw Date: Tue, 09 Aug 2005 18:10:46 +0000 Subject: Fix for bug #1682 - correct sizing of tab control --- (limited to 'libopie2') diff --git a/libopie2/opieui/otabwidget.cpp b/libopie2/opieui/otabwidget.cpp index d617a9c..7103884 100644 --- a/libopie2/opieui/otabwidget.cpp +++ b/libopie2/opieui/otabwidget.cpp @@ -121,6 +121,9 @@ void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &lab OTabInfo *tabinfo = new OTabInfo( tabid, child, icon, label ); m_tabs.append( tabinfo ); + // Force resizing of child controls + resizeEvent( 0x0 ); + // Make newly added tab the current one displayed selectTab( tabinfo ); } @@ -167,6 +170,9 @@ void OTabWidget::removePage( QWidget *childwidget ) // Redraw widget setUpLayout(); } + + // Force resizing of child controls + resizeEvent( 0x0 ); } } @@ -208,6 +214,9 @@ void OTabWidget::changeTab( QWidget *widget, const QString &iconset, const QStri currtab->setLabel( label ); currtab->setIcon( iconset ); + // Force resizing of child controls + resizeEvent( 0x0 ); + // Redraw widget setUpLayout(); } -- cgit v0.9.0.2