summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/otabwidget.cpp9
1 files changed, 9 insertions, 0 deletions
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
@@ -120,8 +120,11 @@ void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &lab
// Keep track of tab information
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 );
}
@@ -166,8 +169,11 @@ void OTabWidget::removePage( QWidget *childwidget )
// Redraw widget
setUpLayout();
}
+
+ // Force resizing of child controls
+ resizeEvent( 0x0 );
}
}
void OTabWidget::changeTab( QWidget *widget, const QString &iconset, const QString &label)
@@ -207,8 +213,11 @@ void OTabWidget::changeTab( QWidget *widget, const QString &iconset, const QStri
// Update tab information
currtab->setLabel( label );
currtab->setIcon( iconset );
+ // Force resizing of child controls
+ resizeEvent( 0x0 );
+
// Redraw widget
setUpLayout();
}
}