mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 22:42:34 -04:00
clang-tidy: use auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
f3f1520f81
commit
7e1d980d08
32 changed files with 224 additions and 223 deletions
|
@ -83,7 +83,7 @@ SearchWidget::~SearchWidget()
|
|||
bool SearchWidget::eventFilter(QObject* obj, QEvent* event)
|
||||
{
|
||||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
auto keyEvent = static_cast<QKeyEvent*>(event);
|
||||
if (keyEvent->key() == Qt::Key_Escape) {
|
||||
emit escapePressed();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue