┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/search/dolphinsearchbox.cpp11
-rw-r--r--src/search/dolphinsearchbox.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index 0ff9e9b1d..84f2c12e5 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -61,7 +61,6 @@ DolphinSearchBox::DolphinSearchBox(QWidget* parent) :
m_everywhereButton(0),
m_fileNameButton(0),
m_contentButton(0),
- m_filterButton(0),
m_searchPath(),
m_startSearchTimer(0)
{
@@ -80,7 +79,6 @@ QString DolphinSearchBox::text() const
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 @@ void DolphinSearchBox::init()
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 @@ void DolphinSearchBox::init()
optionsLayout->addWidget(m_fileNameButton);
optionsLayout->addWidget(m_contentButton);
optionsLayout->addStretch(1);
- optionsLayout->addWidget(m_filterButton);
m_topLayout = new QVBoxLayout(this);
m_topLayout->addLayout(searchInputLayout);
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h
index 11cd24167..18883b512 100644
--- a/src/search/dolphinsearchbox.h
+++ b/src/search/dolphinsearchbox.h
@@ -28,7 +28,6 @@ class AbstractSearchFilterWidget;
class KLineEdit;
class QFormLayout;
class QPushButton;
-class QToolButton;
class QVBoxLayout;
/**
@@ -125,8 +124,6 @@ private:
QPushButton* m_fileNameButton;
QPushButton* m_contentButton;
- QToolButton* m_filterButton;
-
KUrl m_searchPath;
QTimer* m_startSearchTimer;