mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Remove duplicated slot
The slot DolphinViewContainer::focusView(), introduced in commit
2f0114730d
, is actually unnecessary
because DolphinViewContainer::requestFocus() provides the same
functionality already.
This commit is contained in:
parent
d784577562
commit
25b44f6b8c
2 changed files with 1 additions and 12 deletions
|
@ -159,7 +159,7 @@ DolphinViewContainer::DolphinViewContainer(const KUrl& url, QWidget* parent) :
|
|||
connect(m_filterBar, SIGNAL(closeRequest()),
|
||||
this, SLOT(closeFilterBar()));
|
||||
connect(m_filterBar, SIGNAL(focusViewRequest()),
|
||||
this, SLOT(focusView()));
|
||||
this, SLOT(requestFocus()));
|
||||
connect(m_view, SIGNAL(urlChanged(KUrl)),
|
||||
m_filterBar, SLOT(clear()));
|
||||
|
||||
|
@ -386,12 +386,6 @@ void DolphinViewContainer::setFilterBarVisible(bool visible)
|
|||
}
|
||||
}
|
||||
|
||||
void DolphinViewContainer::focusView()
|
||||
{
|
||||
Q_ASSERT(m_view);
|
||||
m_view->setFocus();
|
||||
}
|
||||
|
||||
void DolphinViewContainer::delayedStatusBarUpdate()
|
||||
{
|
||||
if (m_statusBarTimer->isActive() && (m_statusBarTimestamp.elapsed() > 2000)) {
|
||||
|
|
|
@ -147,11 +147,6 @@ public slots:
|
|||
*/
|
||||
void setFilterBarVisible(bool visible);
|
||||
|
||||
/**
|
||||
* Sets focus to the item view.
|
||||
*/
|
||||
void focusView();
|
||||
|
||||
signals:
|
||||
/**
|
||||
* Is emitted whenever the filter bar has changed its visibility state.
|
||||
|
|
Loading…
Reference in a new issue