mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-22 22:40:55 -04:00
Formatting the code.
This commit is contained in:
parent
74efc57369
commit
8324d03f0a
294 changed files with 3796 additions and 3740 deletions
|
@ -33,29 +33,27 @@ void DialogyWidget::keyPressEvent(QKeyEvent* e)
|
|||
if (!clickButton(QDialogButtonBox::Cancel)) {
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
else
|
||||
} else
|
||||
#endif
|
||||
if (!e->modifiers() || (e->modifiers() & Qt::KeypadModifier && e->key() == Qt::Key_Enter)) {
|
||||
if (!e->modifiers() || (e->modifiers() & Qt::KeypadModifier && e->key() == Qt::Key_Enter)) {
|
||||
switch (e->key()) {
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
if (!clickButton(QDialogButtonBox::Ok)) {
|
||||
case Qt::Key_Enter:
|
||||
case Qt::Key_Return:
|
||||
if (!clickButton(QDialogButtonBox::Ok)) {
|
||||
e->ignore();
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Escape:
|
||||
if (!clickButton(QDialogButtonBox::Cancel)) {
|
||||
if (!clickButton(QDialogButtonBox::Close)) {
|
||||
e->ignore();
|
||||
}
|
||||
break;
|
||||
case Qt::Key_Escape:
|
||||
if (!clickButton(QDialogButtonBox::Cancel)) {
|
||||
if (!clickButton(QDialogButtonBox::Close)) {
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
e->ignore();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue