summaryrefslogtreecommitdiffstats
path: root/usersdialog.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2016-01-31 10:25:52 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2016-01-31 10:25:52 +0100
commit1a7b7f9d99d45fdc4868241141a1809f54b8ecc2 (patch)
treea53049b1ed83f132ecaa8c570649ddd22591bc75 /usersdialog.cpp
parent86caf14acc4bc3c54559c5f2a4e04db646549c30 (diff)
Escape key and magic button in User search too, solves #142
Diffstat (limited to 'usersdialog.cpp')
-rw-r--r--usersdialog.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/usersdialog.cpp b/usersdialog.cpp
index 424524ec..64b0a807 100644
--- a/usersdialog.cpp
+++ b/usersdialog.cpp
@@ -94,3 +94,13 @@ void UsersDialog::closeEvent(QCloseEvent *event) {
}
void UsersDialog::on_checkBox_clicked() { populateList(ui->lineEdit->text()); }
+
+void UsersDialog::keyPressEvent(QKeyEvent * event) {
+ switch (event->key()) {
+ case Qt::Key_Escape:
+ ui->lineEdit->clear();
+ break;
+ default:
+ break;
+ }
+}