Close search when the escape button is pressed.

This commit is contained in:
Felix Geyer 2012-07-19 19:31:15 +02:00
parent 8619682da3
commit 8cf6289d9c

View File

@ -87,6 +87,7 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
QIcon closeIcon = filePath()->icon("actions", "dialog-close");
closeAction->setIcon(closeIcon);
m_searchUi->closeSearchButton->setDefaultAction(closeAction);
m_searchUi->closeSearchButton->setShortcut(Qt::Key_Escape);
m_searchWidget->hide();
m_searchUi->caseSensitiveCheckBox->setVisible(false);