diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2023-06-24 11:38:31 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2023-06-28 01:32:10 +0200 |
commit | df735d794fd2e545c18b9e345e833422bcd64329 (patch) | |
tree | 753afc85958e663097c5274c277dd9a03ba895c3 /src/widgets/dialogs/qfiledialog.cpp | |
parent | 9a320b037ce7b63c5f9de6fbb4e391612e857a95 (diff) |
QDialogButtonBox - code cleanup
Replace const char * based connect statements by modern API and remove
'_q_' slot prefixes.
This requires explicit disconnection in the destructor -> add.
Replace bool traps for layouting and removing buttons by enum classes.
Replace if/elseif event handler by switch.
Replace iterator typedef with auto.
Encapsulate logic to ensure defaulting to first accept button in a
member function for better readability.
Remove dead code.
Move private header declaration from cpp to a new _p.h.
Task-number: QTBUG-114377
Pick-to: 6.6 6.5
Change-Id: I8a2bc355e3816c3c826c10cd96194c89bf0ae510
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/dialogs/qfiledialog.cpp')
0 files changed, 0 insertions, 0 deletions