BUG: 169878
svn path=/trunk/KDE/kdebase/apps/; revision=856411
void DolphinViewContainer::closeFilterBar()
{
m_filterBar->hide();
+ m_filterBar->clear();
emit showFilterBarChanged(false);
}
{
}
-void FilterBar::hideEvent(QHideEvent* event)
+void FilterBar::clear()
{
- if (!event->spontaneous()) {
- m_filterInput->clear();
- m_filterInput->clearFocus();
- }
+ m_filterInput->clear();
}
void FilterBar::showEvent(QShowEvent* event)
public:
FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
-
+
+ /** Clears the the input field. */
+ void clear();
+
signals:
/**
* Signal that reports the name filter has been
void closeRequest();
protected:
- virtual void hideEvent(QHideEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);