author | drw <drw> | 2003-06-03 22:11:32 (UTC) |
---|---|---|
committer | drw <drw> | 2003-06-03 22:11:32 (UTC) |
commit | 41ffd8ca271b6803558389d0c10ecb289517c896 (patch) (side-by-side diff) | |
tree | 3d858b42989219ca7f38db0d01e7d88a0bff01c0 | |
parent | 94223c1a074b98d636b546b5a6b237ba91ee1f51 (diff) | |
download | opie-41ffd8ca271b6803558389d0c10ecb289517c896.zip opie-41ffd8ca271b6803558389d0c10ecb289517c896.tar.gz opie-41ffd8ca271b6803558389d0c10ecb289517c896.tar.bz2 |
Make sure tabPosition is initialized properly, thanks zecke for finding
-rw-r--r-- | libopie/otabwidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 05aafd4..fe2c60f 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp @@ -66,24 +66,25 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi widgetStack->setLineWidth( style().defaultFrameWidth() ); tabBarStack = new QWidgetStack( this, "tabbarstack" ); tabBar = new OTabBar( tabBarStack, "tabbar" ); tabBarStack->addWidget( tabBar, 0 ); connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); tabList = new QComboBox( false, tabBarStack, "tablist" ); tabBarStack->addWidget( tabList, 1 ); connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); + tabBarPosition = p; setTabStyle( s ); setTabPosition( p ); currTab= 0x0; } OTabWidget::~OTabWidget() { } void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) { |