Function AcceptDialog.addButton
Adds a button with label text
and a custom action
to the dialog and returns the created button. action
will be passed to the customAction
signal when pressed.
If true
, right
will place the button to the right of any sibling buttons.