summaryrefslogtreecommitdiffstats
path: root/doc/classes/UndoRedo.xml
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-08-17 11:41:46 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-08-17 21:11:10 +0800
commit16c2d4ef22a2928489934833bab06d5ea33bd90e (patch)
treefd4bc91870e0684e1fa668eaeed24c55a733e870 /doc/classes/UndoRedo.xml
parentca6c5cf7e6252558d8791d41b8b757929ac3819c (diff)
downloadredot-engine-16c2d4ef22a2928489934833bab06d5ea33bd90e.tar.gz
Improve Undo/Redo menu items
* Make Undo/Redo menu items disabled when clicking it does nothing. * Context menu of `TextEdit` * Context menu of `LineEdit` * Editor's Scene menu * Script editor's Edit menu and context menu (for Script and Text) * Make editor undo/redo log messages translatable. * Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`. * Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
Diffstat (limited to 'doc/classes/UndoRedo.xml')
-rw-r--r--doc/classes/UndoRedo.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/UndoRedo.xml b/doc/classes/UndoRedo.xml
index 4417447891..def6fe5d1f 100644
--- a/doc/classes/UndoRedo.xml
+++ b/doc/classes/UndoRedo.xml
@@ -166,13 +166,13 @@
This is useful mostly to check if something changed from a saved version.
</description>
</method>
- <method name="has_redo">
+ <method name="has_redo" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if a "redo" action is available.
</description>
</method>
- <method name="has_undo">
+ <method name="has_undo" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if an "undo" action is available.