[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/apps/dolphin/src/search
From:       Peter Penz <peter.penz19 () gmail ! com>
Date:       2010-11-11 18:29:24
Message-ID: 20101111182924.2D055AC89E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1195671 by ppenz:

Remove the filter-button as it has been replaced by the Filter Panel.


 M  +0 -11     dolphinsearchbox.cpp  
 M  +0 -3      dolphinsearchbox.h  


--- trunk/KDE/kdebase/apps/dolphin/src/search/dolphinsearchbox.cpp #1195670:1195671
@@ -61,7 +61,6 @@
     m_everywhereButton(0),
     m_fileNameButton(0),
     m_contentButton(0),
-    m_filterButton(0),
     m_searchPath(),
     m_startSearchTimer(0)
 {
@@ -80,7 +79,6 @@
 void DolphinSearchBox::setSearchPath(const KUrl& url)
 {
     m_searchPath = url;
-    m_filterButton->setVisible(m_nepomukActivated && isSearchPathIndexed());
 
     QFontMetrics metrics(m_fromHereButton->font());
     const int maxWidth = metrics.averageCharWidth() * 15;
@@ -263,14 +261,6 @@
     searchWhatGroup->addButton(m_fileNameButton);
     searchWhatGroup->addButton(m_contentButton);
 
-    // Create "Filter" button
-    m_filterButton = new QToolButton(this);
-    m_filterButton->setIcon(KIcon("view-filter"));
-    m_filterButton->setAutoRaise(true);
-    m_filterButton->setCheckable(true);
-    m_filterButton->hide();
-    //connect(m_filterButton, SIGNAL(toggled(bool)), this, SLOT(setFilterWidgetsVisible(bool)));
-
     // Apply layout for the options
     QHBoxLayout* optionsLayout = new QHBoxLayout();
     optionsLayout->setMargin(0);
@@ -280,7 +270,6 @@
     optionsLayout->addWidget(m_fileNameButton);
     optionsLayout->addWidget(m_contentButton);
     optionsLayout->addStretch(1);
-    optionsLayout->addWidget(m_filterButton);
 
     m_topLayout = new QVBoxLayout(this);
     m_topLayout->addLayout(searchInputLayout);
--- trunk/KDE/kdebase/apps/dolphin/src/search/dolphinsearchbox.h #1195670:1195671
@@ -28,7 +28,6 @@
 class KLineEdit;
 class QFormLayout;
 class QPushButton;
-class QToolButton;
 class QVBoxLayout;
 
 /**
@@ -125,8 +124,6 @@
     QPushButton* m_fileNameButton;
     QPushButton* m_contentButton;
 
-    QToolButton* m_filterButton;
-
     KUrl m_searchPath;
 
     QTimer* m_startSearchTimer;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic