m_close = new QToolButton(this);
m_close->setAutoRaise(true);
- m_close->setIcon(QIcon(SmallIcon("fileclose")));
+ m_close->setIcon(QIcon(SmallIcon("window-close")));
+ m_close->setToolTip(i18n("Hide Filter Bar"));
hLayout->addWidget(m_close);
hLayout->addSpacing(gap);
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"