author | mickeyl <mickeyl> | 2004-08-25 13:50:57 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-08-25 13:50:57 (UTC) |
commit | e71d630b32fc3ecd2213bd27742c3b7a9a943867 (patch) (unidiff) | |
tree | 2312abbb7608db23b05861b71daed26ce1ba0073 /core/launcher/launcherview.cpp | |
parent | a4c678976a3e3fd5afec1a9595a1a80ed621a5e2 (diff) | |
download | opie-e71d630b32fc3ecd2213bd27742c3b7a9a943867.zip opie-e71d630b32fc3ecd2213bd27742c3b7a9a943867.tar.gz opie-e71d630b32fc3ecd2213bd27742c3b7a9a943867.tar.bz2 |
fix #1401 and upgrade ChangeLog
Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/launcherview.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index e86f389..0d0f2cb 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -637,50 +637,48 @@ LauncherView::~LauncherView() | |||
637 | (*bgCache)[bgName]->ref--; | 637 | (*bgCache)[bgName]->ref--; |
638 | } | 638 | } |
639 | 639 | ||
640 | void LauncherView::hideIcons() | 640 | void LauncherView::hideIcons() |
641 | { | 641 | { |
642 | icons->hide(); | 642 | icons->hide(); |
643 | } | 643 | } |
644 | 644 | ||
645 | void LauncherView::setToolsEnabled(bool y) | 645 | void LauncherView::setToolsEnabled(bool y) |
646 | { | 646 | { |
647 | if ( !y != !tools ) { | 647 | if ( !y != !tools ) { |
648 | if ( y ) { | 648 | if ( y ) { |
649 | tools = new QHBox(this); | 649 | tools = new QHBox(this); |
650 | 650 | ||
651 | // Type filter | 651 | // Type filter |
652 | typemb = new QComboBox(tools); | 652 | typemb = new QComboBox(tools); |
653 | QSizePolicy p = typemb->sizePolicy(); | 653 | QSizePolicy p = typemb->sizePolicy(); |
654 | p.setHorData(QSizePolicy::Expanding); | 654 | p.setHorData(QSizePolicy::Expanding); |
655 | typemb->setSizePolicy(p); | 655 | typemb->setSizePolicy(p); |
656 | 656 | ||
657 | // Category filter | 657 | // Category filter |
658 | updateTools(); | 658 | updateTools(); |
659 | tools->show(); | 659 | tools->show(); |
660 | 660 | ||
661 | // Always show vscrollbar | ||
662 | icons->setVScrollBarMode( QScrollView::AlwaysOn ); | ||
663 | } else { | 661 | } else { |
664 | delete tools; | 662 | delete tools; |
665 | tools = 0; | 663 | tools = 0; |
666 | } | 664 | } |
667 | } | 665 | } |
668 | } | 666 | } |
669 | 667 | ||
670 | void LauncherView::updateTools() | 668 | void LauncherView::updateTools() |
671 | { | 669 | { |
672 | disconnect( typemb, SIGNAL(activated(int)), | 670 | disconnect( typemb, SIGNAL(activated(int)), |
673 | this, SLOT(showType(int)) ); | 671 | this, SLOT(showType(int)) ); |
674 | if ( catmb ) disconnect( catmb, SIGNAL(signalSelected(int)), | 672 | if ( catmb ) disconnect( catmb, SIGNAL(signalSelected(int)), |
675 | this, SLOT(showCategory(int)) ); | 673 | this, SLOT(showCategory(int)) ); |
676 | 674 | ||
677 | // ### I want to remove this | 675 | // ### I want to remove this |
678 | icons->updateCategoriesAndMimeTypes(); | 676 | icons->updateCategoriesAndMimeTypes(); |
679 | 677 | ||
680 | QString prev; | 678 | QString prev; |
681 | 679 | ||
682 | // Type filter | 680 | // Type filter |
683 | QStringList types; | 681 | QStringList types; |
684 | typelist = icons->mimeTypes(); | 682 | typelist = icons->mimeTypes(); |
685 | for (QStringList::ConstIterator it = typelist.begin(); it!=typelist.end(); ++it) { | 683 | for (QStringList::ConstIterator it = typelist.begin(); it!=typelist.end(); ++it) { |
686 | QString t = *it; | 684 | QString t = *it; |