author | alwin <alwin> | 2004-11-09 20:21:09 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-09 20:21:09 (UTC) |
commit | fcd9c62650dd1bb9c04bfd798d243cb894a8f393 (patch) (unidiff) | |
tree | 9dbe425e4b78734b0a85f7af5d37a1f3fdb598b9 | |
parent | c7b97ac140de31282dba2463a00f434c7a5bba69 (diff) | |
download | opie-fcd9c62650dd1bb9c04bfd798d243cb894a8f393.zip opie-fcd9c62650dd1bb9c04bfd798d243cb894a8f393.tar.gz opie-fcd9c62650dd1bb9c04bfd798d243cb894a8f393.tar.bz2 |
remove change from yesterday - the problem isn't the widget it is the
advancedfm itself I think.
zecke or ar - please take a look on it. I don't understand it.
-rw-r--r-- | libopie2/opieui/otabwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opieui/otabwidget.cpp b/libopie2/opieui/otabwidget.cpp index 80a4c9b..d23b1c9 100644 --- a/libopie2/opieui/otabwidget.cpp +++ b/libopie2/opieui/otabwidget.cpp | |||
@@ -337,33 +337,33 @@ QPixmap OTabWidget::loadSmooth( const QString &name ) | |||
337 | QPixmap p; | 337 | QPixmap p; |
338 | p.convertFromImage( Resource::loadImage( name ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | 338 | p.convertFromImage( Resource::loadImage( name ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); |
339 | return p; | 339 | return p; |
340 | } | 340 | } |
341 | 341 | ||
342 | void OTabWidget::selectTab( OTabInfo *tab ) | 342 | void OTabWidget::selectTab( OTabInfo *tab ) |
343 | { | 343 | { |
344 | if ( tabBarStyle == IconTab ) | 344 | if ( tabBarStyle == IconTab ) |
345 | { | 345 | { |
346 | if ( currTab ) | 346 | if ( currTab ) |
347 | { | 347 | { |
348 | tabBar->tab( currTab->id() )->setText( QString::null ); | 348 | tabBar->tab( currTab->id() )->setText( QString::null ); |
349 | setUpLayout(); | 349 | setUpLayout(); |
350 | } | 350 | } |
351 | tabBar->tab( tab->id() )->setText( tab->label() ); | 351 | tabBar->tab( tab->id() )->setText( tab->label() ); |
352 | tabBar->setCurrentTab( tab->id() ); | 352 | tabBar->setCurrentTab( tab->id() ); |
353 | // setUpLayout(); | 353 | setUpLayout(); |
354 | tabBar->update(); | 354 | tabBar->update(); |
355 | } | 355 | } |
356 | else | 356 | else |
357 | { | 357 | { |
358 | tabBar->setCurrentTab( tab->id() ); | 358 | tabBar->setCurrentTab( tab->id() ); |
359 | } | 359 | } |
360 | 360 | ||
361 | widgetStack->raiseWidget( tab->control() ); | 361 | widgetStack->raiseWidget( tab->control() ); |
362 | 362 | ||
363 | emit currentChanged( tab->control() ); | 363 | emit currentChanged( tab->control() ); |
364 | 364 | ||
365 | currTab = tab; | 365 | currTab = tab; |
366 | } | 366 | } |
367 | 367 | ||
368 | void OTabWidget::setUpLayout() | 368 | void OTabWidget::setUpLayout() |
369 | { | 369 | { |