mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
don't clear the filterbar when switching between tabs
BUG: 169878 svn path=/trunk/KDE/kdebase/apps/; revision=856411
This commit is contained in:
parent
d919499909
commit
cb5a134080
|
@ -279,6 +279,7 @@ void DolphinViewContainer::showOperationCompletedMessage(const QString& msg)
|
|||
void DolphinViewContainer::closeFilterBar()
|
||||
{
|
||||
m_filterBar->hide();
|
||||
m_filterBar->clear();
|
||||
emit showFilterBarChanged(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue