don't clear the filterbar when switching between tabs

BUG: 169878

svn path=/trunk/KDE/kdebase/apps/; revision=856411
This commit is contained in:
Peter Penz 2008-09-02 20:01:50 +00:00
parent d919499909
commit cb5a134080
3 changed files with 7 additions and 7 deletions

View file

@ -279,6 +279,7 @@ void DolphinViewContainer::showOperationCompletedMessage(const QString& msg)
void DolphinViewContainer::closeFilterBar()
{
m_filterBar->hide();
m_filterBar->clear();
emit showFilterBarChanged(false);
}

View file

@ -66,12 +66,9 @@ FilterBar::~FilterBar()
{
}
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)

View file

@ -39,7 +39,10 @@ class FilterBar : public QWidget
public:
FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
/** Clears the the input field. */
void clear();
signals:
/**
* Signal that reports the name filter has been
@ -53,7 +56,6 @@ signals:
void closeRequest();
protected:
virtual void hideEvent(QHideEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);