Преглед на файлове

Document `Tree.item_collapsed` also being emitted when the item is expanded

This also mentions that the signal is emitted even when the item is
expanded/collapsed through code.
Hugo Locurcio преди 1 месец
родител
ревизия
e4131712a4
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      doc/classes/Tree.xml

+ 2 - 1
doc/classes/Tree.xml

@@ -431,7 +431,8 @@
 		<signal name="item_collapsed">
 			<param index="0" name="item" type="TreeItem" />
 			<description>
-				Emitted when an item is collapsed by a click on the folding arrow.
+				Emitted when an item is expanded or collapsed by clicking on the folding arrow or through code.
+				[b]Note:[/b] Despite its name, this signal is also emitted when an item is expanded.
 			</description>
 		</signal>
 		<signal name="item_edited">