diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-11-11 16:58:39 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 16:58:39 +0700 |
commit | 35e7f992993a69a1e25cc12109ef7cf885e18260 (patch) | |
tree | 603987439140104c0f4ef071ea3b1f766fe58983 /doc/classes/LineEdit.xml | |
parent | 045bf23207754f17184770ad4371cf7bff582468 (diff) | |
parent | fc299b4f370d586b75e1ae4f394cd3759ea4ae49 (diff) |
Merge pull request #12789 from ianb96/context_menu_fix
Context menu disable
Diffstat (limited to 'doc/classes/LineEdit.xml')
-rw-r--r-- | doc/classes/LineEdit.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index 850f724714..bf81d90efe 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -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"> |