#include <kiconloader.h>
#include <QEvent>
+#include <QKeyEvent>
#include <QHBoxLayout>
#include <QToolButton>
{
if (event->type() == QEvent::Polish) {
m_searchInput->setFont(KGlobalSettings::generalFont());
+ } else if (event->type() == QEvent::KeyPress) {
+ if (static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape) {
+ m_searchInput->clear();
+ }
}
return QWidget::event(event);
}