소스 검색

Mention how to handle cancel in ConfirmationDialog

Tomasz Chabora 5 년 전
부모
커밋
2b1fb0375d
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>