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);
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()
{
QWidget::keyReleaseEvent(event);
if ((event->key() == Qt::Key_Escape)) {
- emitClose();
+ emitCloseRequest();
}
}
-void FilterBar::emitClose()
+void FilterBar::emitCloseRequest()
{
- emit close();
+ emit closeRequest();
}
#include "filterbar.moc"
/**
* Emitted as soon as the filterbar should get closed.
*/
- void closed();
+ void closeRequest();
protected:
virtual void hideEvent(QHideEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);
private slots:
- void emitClose();
+ void emitCloseRequest();
private:
QLabel* m_filter;