You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
26b5dc2 [GUI][Refactor] Dismiss dialogs with QDialog::reject vs QWidget::close (random-zebra)
7cb8107 [GUI] Make more dialogs inherit from FocusedDialog (random-zebra)
9acda36 [GUI] Make DefaultDialog and TxDetailDialog child of FocusedDialog (random-zebra)
bc579f7 [GUI] Introduce FocusedDialog generic class (random-zebra)
Pull request description:
This creates a generic extension of QDialog, named `FocusedDialog`, with the property of having the focus on show and filtering key press events to call `accept()` with ENTER/RETURN and `close()` with ESC (ref: #1392).
Removes code duplication in `DefaultDialog` and `TxDetailDialog` by making them child classes of FocusedDialog.
Also add this ability to other dialogs as well:
- `AddNewContactDialog` (closes#1606)
- `MasterNodeWizardDialog`
- `MnInfoDialog`
- `ReceiveDialog`
- `RequestDialog`
- `SendChangeAddressDialog`
- `SendCustomFeeDialog`
ACKs for top commit:
Fuzzbawls:
ACK 26b5dc2
furszy:
Tested ACK 26b5dc2 and merging.
Tree-SHA512: 43a8f74969a55e5c9f9119721f94f54b33ba44291c6e06e7603f63fb4d1a959fce8cf17e6e63811e2b550ce0c62e06d5831acdc279de20fe914c97a71c0638d3
The text was updated successfully, but these errors were encountered: