-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 | |||
@@ -62,32 +62,33 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi | |||
62 | } | 62 | } |
63 | 63 | ||
64 | widgetStack = new QWidgetStack( this, "widgetstack" ); | 64 | widgetStack = new QWidgetStack( this, "widgetstack" ); |
65 | widgetStack->setFrameStyle( QFrame::NoFrame ); | 65 | widgetStack->setFrameStyle( QFrame::NoFrame ); |
66 | widgetStack->setLineWidth( style().defaultFrameWidth() ); | 66 | widgetStack->setLineWidth( style().defaultFrameWidth() ); |
67 | 67 | ||
68 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); | 68 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); |
69 | 69 | ||
70 | tabBar = new OTabBar( tabBarStack, "tabbar" ); | 70 | tabBar = new OTabBar( tabBarStack, "tabbar" ); |
71 | tabBarStack->addWidget( tabBar, 0 ); | 71 | tabBarStack->addWidget( tabBar, 0 ); |
72 | connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); | 72 | connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); |
73 | 73 | ||
74 | tabList = new QComboBox( false, tabBarStack, "tablist" ); | 74 | tabList = new QComboBox( false, tabBarStack, "tablist" ); |
75 | tabBarStack->addWidget( tabList, 1 ); | 75 | tabBarStack->addWidget( tabList, 1 ); |
76 | connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); | 76 | connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); |
77 | 77 | ||
78 | tabBarPosition = p; | ||
78 | setTabStyle( s ); | 79 | setTabStyle( s ); |
79 | setTabPosition( p ); | 80 | setTabPosition( p ); |
80 | 81 | ||
81 | currTab= 0x0; | 82 | currTab= 0x0; |
82 | } | 83 | } |
83 | 84 | ||
84 | OTabWidget::~OTabWidget() | 85 | OTabWidget::~OTabWidget() |
85 | { | 86 | { |
86 | } | 87 | } |
87 | 88 | ||
88 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) | 89 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) |
89 | { | 90 | { |
90 | QPixmap iconset = loadSmooth( icon ); | 91 | QPixmap iconset = loadSmooth( icon ); |
91 | 92 | ||
92 | QTab *tab = new QTab(); | 93 | QTab *tab = new QTab(); |
93 | if ( tabBarStyle == IconTab ) | 94 | if ( tabBarStyle == IconTab ) |