diff options
| author | Peter Penz <[email protected]> | 2010-11-11 18:29:23 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-11-11 18:29:23 +0000 |
| commit | f77e1c514a6b4b5eaa64a614ee84426aa062a4ed (patch) | |
| tree | f5b5b5280e0eeac5172ce9ad4f822e26cbb8eb04 /src | |
| parent | 943cb0c1c79629e5780163825422cf6827ef6008 (diff) | |
Remove the filter-button as it has been replaced by the Filter Panel.
svn path=/trunk/KDE/kdebase/apps/; revision=1195671
Diffstat (limited to 'src')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 11 | ||||
| -rw-r--r-- | src/search/dolphinsearchbox.h | 3 |
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; |
