-rw-r--r-- | libopie/otabwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 3a9a5ec..52190b2 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp | |||
@@ -57,37 +57,37 @@ OTabWidget::OTabWidget( QWidget *parent, const char *name, TabStyle s, TabPositi | |||
57 | p = Bottom; | 57 | p = Bottom; |
58 | } | 58 | } |
59 | else | 59 | else |
60 | { | 60 | { |
61 | p = Top; | 61 | p = Top; |
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | widgetStack = new QWidgetStack( this, "widgetstack" ); | 65 | widgetStack = new QWidgetStack( this, "widgetstack" ); |
66 | widgetStack->setFrameStyle( QFrame::NoFrame ); | 66 | widgetStack->setFrameStyle( QFrame::NoFrame ); |
67 | widgetStack->setLineWidth( style().defaultFrameWidth() ); | 67 | widgetStack->setLineWidth( style().defaultFrameWidth() ); |
68 | 68 | ||
69 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); | 69 | tabBarStack = new QWidgetStack( this, "tabbarstack" ); |
70 | 70 | ||
71 | tabBar = new OTabBar( tabBarStack, "tabbar" ); | 71 | tabBar = new OTabBar( tabBarStack, "tabbar" ); |
72 | tabBarStack->addWidget( tabBar, 0 ); | 72 | tabBarStack->addWidget( tabBar, 0 ); |
73 | connect( tabBar, SIGNAL( selected( int ) ), this, SLOT( slotTabBarSelected( int ) ) ); | 73 | connect( tabBar, SIGNAL( selected(int) ), this, SLOT( slotTabBarSelected(int) ) ); |
74 | 74 | ||
75 | tabList = new QComboBox( false, tabBarStack, "tablist" ); | 75 | tabList = new QComboBox( false, tabBarStack, "tablist" ); |
76 | tabBarStack->addWidget( tabList, 1 ); | 76 | tabBarStack->addWidget( tabList, 1 ); |
77 | connect( tabList, SIGNAL( activated( int ) ), this, SLOT( slotTabListSelected( int ) ) ); | 77 | connect( tabList, SIGNAL( activated(int) ), this, SLOT( slotTabListSelected(int) ) ); |
78 | 78 | ||
79 | tabBarPosition = p; | 79 | tabBarPosition = p; |
80 | setTabStyle( s ); | 80 | setTabStyle( s ); |
81 | setTabPosition( p ); | 81 | setTabPosition( p ); |
82 | 82 | ||
83 | currTab= 0x0; | 83 | currTab= 0x0; |
84 | } | 84 | } |
85 | 85 | ||
86 | OTabWidget::~OTabWidget() | 86 | OTabWidget::~OTabWidget() |
87 | { | 87 | { |
88 | } | 88 | } |
89 | 89 | ||
90 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) | 90 | void OTabWidget::addTab( QWidget *child, const QString &icon, const QString &label ) |
91 | { | 91 | { |
92 | QPixmap iconset = loadSmooth( icon ); | 92 | QPixmap iconset = loadSmooth( icon ); |
93 | 93 | ||