author | harlekin <harlekin> | 2002-02-23 22:47:25 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-02-23 22:47:25 (UTC) |
commit | f1c800025cf759ca0d6257a42f548216d217b16b (patch) (unidiff) | |
tree | 42aa7b339aad4b6dcfc6b17d4931febbb17b591d | |
parent | 9f9006e0257e3d4c5d66331a7d6061c8a5da164b (diff) | |
download | opie-f1c800025cf759ca0d6257a42f548216d217b16b.zip opie-f1c800025cf759ca0d6257a42f548216d217b16b.tar.gz opie-f1c800025cf759ca0d6257a42f548216d217b16b.tar.bz2 |
make the two bottom menus the same height (the buttons)
-rw-r--r-- | core/launcher/launcherview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 0df949e..764f088 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -435,52 +435,54 @@ LauncherView::LauncherView( QWidget* parent, const char* name, WFlags fl ) | |||
435 | SLOT(itemClicked(int, QIconViewItem *)) ); | 435 | SLOT(itemClicked(int, QIconViewItem *)) ); |
436 | connect( icons, SIGNAL(selectionChanged()), | 436 | connect( icons, SIGNAL(selectionChanged()), |
437 | SLOT(selectionChanged()) ); | 437 | SLOT(selectionChanged()) ); |
438 | connect( icons, SIGNAL(returnPressed(QIconViewItem *)), | 438 | connect( icons, SIGNAL(returnPressed(QIconViewItem *)), |
439 | SLOT(returnPressed(QIconViewItem *)) ); | 439 | SLOT(returnPressed(QIconViewItem *)) ); |
440 | connect( icons, SIGNAL(mouseButtonPressed(int, QIconViewItem *, const QPoint&)), | 440 | connect( icons, SIGNAL(mouseButtonPressed(int, QIconViewItem *, const QPoint&)), |
441 | SLOT(itemPressed(int, QIconViewItem *)) ); | 441 | SLOT(itemPressed(int, QIconViewItem *)) ); |
442 | 442 | ||
443 | tools = 0; | 443 | tools = 0; |
444 | } | 444 | } |
445 | 445 | ||
446 | LauncherView::~LauncherView() | 446 | LauncherView::~LauncherView() |
447 | { | 447 | { |
448 | } | 448 | } |
449 | 449 | ||
450 | void LauncherView::setToolsEnabled(bool y) | 450 | void LauncherView::setToolsEnabled(bool y) |
451 | { | 451 | { |
452 | if ( !y != !tools ) { | 452 | if ( !y != !tools ) { |
453 | if ( y ) { | 453 | if ( y ) { |
454 | tools = new QHBox(this); | 454 | tools = new QHBox(this); |
455 | 455 | ||
456 | // Type filter | 456 | // Type filter |
457 | typemb = new MenuButton(tools); | 457 | typemb = new MenuButton(tools); |
458 | typemb->setLabel(tr("Type: %1")); | 458 | typemb->setLabel(tr("Type: %1")); |
459 | 459 | typemb->setFixedHeight ( 20 ); | |
460 | |||
460 | // Category filter | 461 | // Category filter |
461 | catmb = new CategorySelect(tools); | 462 | catmb = new CategorySelect(tools); |
462 | 463 | catmb->setFixedHeight ( 20 ); | |
464 | |||
463 | updateTools(); | 465 | updateTools(); |
464 | tools->show(); | 466 | tools->show(); |
465 | } else { | 467 | } else { |
466 | delete tools; | 468 | delete tools; |
467 | tools = 0; | 469 | tools = 0; |
468 | } | 470 | } |
469 | } | 471 | } |
470 | } | 472 | } |
471 | 473 | ||
472 | void LauncherView::updateTools() | 474 | void LauncherView::updateTools() |
473 | { | 475 | { |
474 | disconnect( typemb, SIGNAL(selected(const QString&)), | 476 | disconnect( typemb, SIGNAL(selected(const QString&)), |
475 | this, SLOT(showType(const QString&)) ); | 477 | this, SLOT(showType(const QString&)) ); |
476 | disconnect( catmb, SIGNAL(signalSelected(int)), | 478 | disconnect( catmb, SIGNAL(signalSelected(int)), |
477 | this, SLOT(showCategory(int)) ); | 479 | this, SLOT(showCategory(int)) ); |
478 | 480 | ||
479 | icons->updateCategoriesAndMimeTypes(); | 481 | icons->updateCategoriesAndMimeTypes(); |
480 | 482 | ||
481 | QString prev; | 483 | QString prev; |
482 | 484 | ||
483 | // Type filter | 485 | // Type filter |
484 | QStringList types; | 486 | QStringList types; |
485 | types << tr("All"); | 487 | types << tr("All"); |
486 | types << "--"; | 488 | types << "--"; |