diff options
author | Jonathan Klimt <brouwer@annejan.com> | 2016-01-29 15:24:55 +0100 |
---|---|---|
committer | Jonathan Klimt <jounathaen@mail.de> | 2016-01-29 15:24:55 +0100 |
commit | 86caf14acc4bc3c54559c5f2a4e04db646549c30 (patch) | |
tree | 2ec6f96c32f47fc829264da81ff162a325da6bb5 /mainwindow.cpp | |
parent | e0eba0fbaa52d2fbafd68df2fc9acbb785a86fa4 (diff) |
Esc Key clears search field
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 678d51c3..00a62d1e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1585,6 +1585,9 @@ void MainWindow::keyPressEvent(QKeyEvent * event) { case Qt::Key_Enter: on_editButton_clicked(); break; + case Qt::Key_Escape: + ui->lineEdit->clear(); + break; default: break; } |