mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Fixed issue that the filterbar and the menu state have not been synchronized (a not existing signal name has been used)
svn path=/trunk/playground/utils/dolphin/; revision=631709
This commit is contained in:
parent
abf8f1917d
commit
ee4e21530b
|
@ -116,7 +116,7 @@ DolphinView::DolphinView(DolphinMainWindow* mainWindow,
|
|||
m_filterBar->hide();
|
||||
connect(m_filterBar, SIGNAL(filterChanged(const QString&)),
|
||||
this, SLOT(changeNameFilter(const QString&)));
|
||||
connect(m_filterBar, SIGNAL(closed()),
|
||||
connect(m_filterBar, SIGNAL(closeRequest()),
|
||||
this, SLOT(closeFilterBar()));
|
||||
|
||||
m_topLayout->addWidget(m_urlNavigator);
|
||||
|
|
|
@ -60,7 +60,7 @@ FilterBar::FilterBar(QWidget* parent) :
|
|||
|
||||
connect(m_filterInput, SIGNAL(textChanged(const QString&)),
|
||||
this, SIGNAL(filterChanged(const QString&)));
|
||||
connect(m_close, SIGNAL(clicked()), this, SLOT(emitClose()));
|
||||
connect(m_close, SIGNAL(clicked()), this, SLOT(emitCloseRequest()));
|
||||
}
|
||||
|
||||
FilterBar::~FilterBar()
|
||||
|
@ -86,13 +86,13 @@ void FilterBar::keyReleaseEvent(QKeyEvent* event)
|
|||
{
|
||||
QWidget::keyReleaseEvent(event);
|
||||
if ((event->key() == Qt::Key_Escape)) {
|
||||
emitClose();
|
||||
emitCloseRequest();
|
||||
}
|
||||
}
|
||||
|
||||
void FilterBar::emitClose()
|
||||
void FilterBar::emitCloseRequest()
|
||||
{
|
||||
emit close();
|
||||
emit closeRequest();
|
||||
}
|
||||
|
||||
#include "filterbar.moc"
|
||||
|
|
|
@ -51,7 +51,7 @@ signals:
|
|||
/**
|
||||
* Emitted as soon as the filterbar should get closed.
|
||||
*/
|
||||
void closed();
|
||||
void closeRequest();
|
||||
|
||||
protected:
|
||||
virtual void hideEvent(QHideEvent* event);
|
||||
|
@ -59,7 +59,7 @@ protected:
|
|||
virtual void keyReleaseEvent(QKeyEvent* event);
|
||||
|
||||
private slots:
|
||||
void emitClose();
|
||||
void emitCloseRequest();
|
||||
|
||||
private:
|
||||
QLabel* m_filter;
|
||||
|
|
Loading…
Reference in New Issue
Block a user