summaryrefslogtreecommitdiff
path: root/core
authorharlekin <harlekin>2002-02-23 22:47:25 (UTC)
committer harlekin <harlekin>2002-02-23 22:47:25 (UTC)
commitf1c800025cf759ca0d6257a42f548216d217b16b (patch) (unidiff)
tree42aa7b339aad4b6dcfc6b17d4931febbb17b591d /core
parent9f9006e0257e3d4c5d66331a7d6061c8a5da164b (diff)
downloadopie-f1c800025cf759ca0d6257a42f548216d217b16b.zip
opie-f1c800025cf759ca0d6257a42f548216d217b16b.tar.gz
opie-f1c800025cf759ca0d6257a42f548216d217b16b.tar.bz2
make the two bottom menus the same height (the buttons)
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp6
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
446LauncherView::~LauncherView() 446LauncherView::~LauncherView()
447{ 447{
448} 448}
449 449
450void LauncherView::setToolsEnabled(bool y) 450void 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
472void LauncherView::updateTools() 474void 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 << "--";