浏览代码

Merge pull request #34499 from KoBeWi/your_dialog_was_cancelled

Mention how to handle cancel in ConfirmationDialog
Rémi Verschelde 5 年之前
父节点
当前提交
569e9c1d51
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      doc/classes/ConfirmationDialog.xml

+ 4 - 0
doc/classes/ConfirmationDialog.xml

@@ -5,6 +5,10 @@
 	</brief_description>
 	<description>
 		Dialog for confirmation of actions. This dialog inherits from [AcceptDialog], but has by default an OK and Cancel button (in host OS order).
+		To get cancel action, you can use:
+		[codeblock]
+		get_cancel().connect("pressed", self, "cancelled")
+		[/codeblock].
 	</description>
 	<tutorials>
 	</tutorials>