diff options
author | Vitaly Fanaskov <vitaly.fanaskov@qt.io> | 2018-12-07 16:04:33 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-01-03 18:38:12 +0000 |
commit | d8bbb5ee0e60d44a70d29306e607a59caf7fe5bc (patch) | |
tree | b0c7c4929a184e36ae4b5888d739f4db4929b53f /src/platformsupport | |
parent | 1606a8aa1c8ab2bce4009ba34a854cd83ddf39e0 (diff) |
Respect roles of buttons added to QMessageBox
When a button added to QMessageBox has AcceptRole or YesRole, the signal
accepted() will be emitted upon click on the button. If the button has
RejectRole or NoRole, the signal rejected() will be emitted upon click
on the button. If a button has a different role, neither accepted() nor
rejected() will be emitted. This works for both standard and custom
buttons.
The signal finished() with result code will be sent regardless of a
clicked button role.
Also added documentation strings for some methods of private classes in
order to have better tooltips in IDE(s).
Task-number: QTBUG-44131
Change-Id: I521a4e5112eb4cf168f6fbb4c002dbe119aeeb09
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/platformsupport')
0 files changed, 0 insertions, 0 deletions