diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-03-20 10:15:49 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-03-21 09:45:48 +0000 |
commit | a7e58487a4721cb07efb3501a63a9ac3454d7c60 (patch) | |
tree | d9df4b00602a6632fb6b68945704b2c103d249d9 | |
parent | 5e357350dc149b580e26fde37dd134c5d66bcdbf (diff) |
Doc: update list of signals emitted when buttons with roles are clicked
There are a lot more than mentioned in the detailed description, so add
a table and list those suckers.
Change-Id: I92eb33a0d7071426328dafb2b1ec0096d075f257
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r-- | src/quicktemplates2/qquickdialogbuttonbox.cpp | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickdialogbuttonbox.cpp b/src/quicktemplates2/qquickdialogbuttonbox.cpp index f16f1b74..52171f5b 100644 --- a/src/quicktemplates2/qquickdialogbuttonbox.cpp +++ b/src/quicktemplates2/qquickdialogbuttonbox.cpp @@ -97,9 +97,33 @@ QT_BEGIN_NAMESPACE You can also mix and match normal buttons and standard buttons. When a button is clicked in the button box, the \l clicked() signal is - emitted for the actual button that is pressed. For convenience, if the - button has an \c AcceptRole, \c RejectRole, or \c HelpRole, the \l accepted(), - \l rejected(), or \l helpRequested() signals are emitted respectively. + emitted for the actual button that is pressed. In addition, the + following signals are automatically emitted when a button with the + respective role(s) is pressed: + + \table + \header + \li Role + \li Signal + \row + \li \c AcceptRole, \c YesRole + \li \l accepted() + \row + \li \c ApplyRole + \li \l applied() + \row + \li \c DiscardRole + \li \l discarded() + \row + \li \c HelpRole + \li \l helpRequested() + \row + \li \c RejectRole, \c NoRole + \li \l rejected() + \row + \li \c ResetRole + \li \l reset() + \endtable \sa Dialog */ |