-rw-r--r-- | libopie/otabwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 99bf067..a1fd2c0 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp | |||
@@ -298,65 +298,65 @@ void OTabWidget::setTabPosition( TabPosition p ) | |||
298 | { | 298 | { |
299 | tabBar->setShape( QTabBar::RoundedBelow ); | 299 | tabBar->setShape( QTabBar::RoundedBelow ); |
300 | } | 300 | } |
301 | setUpLayout(); | 301 | setUpLayout(); |
302 | } | 302 | } |
303 | 303 | ||
304 | void OTabWidget::slotTabBarSelected( int id ) | 304 | void OTabWidget::slotTabBarSelected( int id ) |
305 | { | 305 | { |
306 | OTabInfo *newtab = tabs.first(); | 306 | OTabInfo *newtab = tabs.first(); |
307 | while ( newtab && newtab->id() != id ) | 307 | while ( newtab && newtab->id() != id ) |
308 | { | 308 | { |
309 | newtab = tabs.next(); | 309 | newtab = tabs.next(); |
310 | } | 310 | } |
311 | if ( newtab && newtab->id() == id ) | 311 | if ( newtab && newtab->id() == id ) |
312 | { | 312 | { |
313 | selectTab( newtab ); | 313 | selectTab( newtab ); |
314 | } | 314 | } |
315 | } | 315 | } |
316 | 316 | ||
317 | void OTabWidget::slotTabListSelected( int index ) | 317 | void OTabWidget::slotTabListSelected( int index ) |
318 | { | 318 | { |
319 | OTabInfo *newtab = tabs.at( index ); | 319 | OTabInfo *newtab = tabs.at( index ); |
320 | if ( newtab ) | 320 | if ( newtab ) |
321 | { | 321 | { |
322 | selectTab( newtab ); | 322 | selectTab( newtab ); |
323 | } | 323 | } |
324 | } | 324 | } |
325 | 325 | ||
326 | QPixmap OTabWidget::loadSmooth( const QString &name ) | 326 | QPixmap OTabWidget::loadSmooth( const QString &name ) |
327 | { | 327 | { |
328 | QImage image = Resource::loadImage( name ); | 328 | QImage image = Resource::loadImage( name ); |
329 | QPixmap pixmap; | 329 | QPixmap pixmap; |
330 | pixmap.convertFromImage( image.smoothScale( 16, 16 ) ); | 330 | pixmap.convertFromImage( image.smoothScale( 14, 14 ) ); |
331 | return pixmap; | 331 | return pixmap; |
332 | } | 332 | } |
333 | 333 | ||
334 | void OTabWidget::selectTab( OTabInfo *tab ) | 334 | void OTabWidget::selectTab( OTabInfo *tab ) |
335 | { | 335 | { |
336 | if ( tabBarStyle == IconTab ) | 336 | if ( tabBarStyle == IconTab ) |
337 | { | 337 | { |
338 | if ( currentTab ) | 338 | if ( currentTab ) |
339 | { | 339 | { |
340 | tabBar->tab( currentTab->id() )->setText( QString::null ); | 340 | tabBar->tab( currentTab->id() )->setText( QString::null ); |
341 | setUpLayout(); | 341 | setUpLayout(); |
342 | } | 342 | } |
343 | tabBar->tab( tab->id() )->setText( tab->label() ); | 343 | tabBar->tab( tab->id() )->setText( tab->label() ); |
344 | tabBar->setCurrentTab( tab->id() ); | 344 | tabBar->setCurrentTab( tab->id() ); |
345 | setUpLayout(); | 345 | setUpLayout(); |
346 | tabBar->update(); | 346 | tabBar->update(); |
347 | } | 347 | } |
348 | else | 348 | else |
349 | { | 349 | { |
350 | tabBar->setCurrentTab( tab->id() ); | 350 | tabBar->setCurrentTab( tab->id() ); |
351 | } | 351 | } |
352 | 352 | ||
353 | widgetStack->raiseWidget( tab->control() ); | 353 | widgetStack->raiseWidget( tab->control() ); |
354 | 354 | ||
355 | emit currentChanged( tab->control() ); | 355 | emit currentChanged( tab->control() ); |
356 | 356 | ||
357 | currentTab = tab; | 357 | currentTab = tab; |
358 | } | 358 | } |
359 | 359 | ||
360 | void OTabWidget::setUpLayout() | 360 | void OTabWidget::setUpLayout() |
361 | { | 361 | { |
362 | tabBar->layoutTabs(); | 362 | tabBar->layoutTabs(); |