Merge pull request #83038 from jsjtxietian/update-doc-mention-spinbox-reset-habeviour

Update SpinBox documentation to include resetting to min/max behaviour
This commit is contained in:
Rémi Verschelde 2023-10-13 11:43:59 +02:00
commit 1eabeb620b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -24,6 +24,7 @@
[/codeblocks]
The above code will create a [SpinBox], disable context menu on it and set the text alignment to right.
See [Range] class for more options over the [SpinBox].
[b]Note:[/b] With the [SpinBox]'s context menu disabled, you can right-click the bottom half of the spinbox to set the value to its minimum, while right-clicking the top half sets the value to its maximum.
[b]Note:[/b] [SpinBox] relies on an underlying [LineEdit] node. To theme a [SpinBox]'s background, add theme items for [LineEdit] and customize them.
[b]Note:[/b] If you want to implement drag and drop for the underlying [LineEdit], you can use [method Control.set_drag_forwarding] on the node returned by [method get_line_edit].
</description>