diff options
Diffstat (limited to 'usersdialog.cpp')
-rw-r--r-- | usersdialog.cpp | 10 |
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; + } +} |