Skip to content

Commit

Permalink
Merge pull request #40457 from Calinou/doc-basebutton-pressed-toggled
Browse files Browse the repository at this point in the history
Mention `toggled` signal for pressed state in BaseButton documentation
  • Loading branch information
akien-mga authored Jul 21, 2020
2 parents 41d6c96 + 43dae28 commit e73de41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/classes/BaseButton.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<return type="void">
</return>
<description>
Called when the button is pressed.
Called when the button is pressed. If you need to know the button's pressed state (and [member toggle_mode] is active), use [method _toggled] instead.
</description>
</method>
<method name="_toggled" qualifiers="virtual">
Expand Down Expand Up @@ -89,6 +89,7 @@
<signal name="pressed">
<description>
Emitted when the button is toggled or pressed. This is on [signal button_down] if [member action_mode] is [constant ACTION_MODE_BUTTON_PRESS] and on [signal button_up] otherwise.
If you need to know the button's pressed state (and [member toggle_mode] is active), use [signal toggled] instead.
</description>
</signal>
<signal name="toggled">
Expand Down

0 comments on commit e73de41

Please sign in to comment.