add context menu enable getters, setters, and properties in LineEdit and TextEdit
This commit is contained in:
parent
045bf23207
commit
fc299b4f37
6 changed files with 63 additions and 1 deletions
|
|
@ -114,6 +114,13 @@
|
|||
Return the text in the [code]LineEdit[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_context_menu_enabled" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Returns true if the context menu is enabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_editable" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
|
@ -170,6 +177,15 @@
|
|||
Set text alignment of the [code]LineEdit[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_context_menu_enabled">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="enabled" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Set the status of the context menu. When enabled, the context menu will appear when the [code]LineEdit[/code] is right clicked.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_cursor_position">
|
||||
<return type="void">
|
||||
</return>
|
||||
|
|
@ -276,6 +292,9 @@
|
|||
<member name="text" type="String" setter="set_text" getter="get_text">
|
||||
String value of the [LineEdit].
|
||||
</member>
|
||||
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled">
|
||||
If [code]true[/code] the context menu will appear when right clicked.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="text_changed">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue