summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorMewPurPur <mew.pur.pur@gmail.com>2024-09-19 01:15:12 +0300
committerMewPurPur <mew.pur.pur@gmail.com>2024-09-19 13:18:04 +0300
commitf7a7ecc10ae6f8f0590651d836e1169c6034087f (patch)
tree3de5b9ecba9b2260a41f2162ed35b6b3427bf7c6 /scene
parent694d3c2930bdfb43fd93e1e6641f66c4f19a5c77 (diff)
downloadredot-engine-f7a7ecc10ae6f8f0590651d836e1169c6034087f.tar.gz
Expose has_undo() and has_redo() of LineEdit
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index a08fb96e71..756cb77c60 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -2763,6 +2763,8 @@ void LineEdit::_bind_methods() {
ClassDB::bind_method(D_METHOD("select", "from", "to"), &LineEdit::select, DEFVAL(0), DEFVAL(-1));
ClassDB::bind_method(D_METHOD("select_all"), &LineEdit::select_all);
ClassDB::bind_method(D_METHOD("deselect"), &LineEdit::deselect);
+ ClassDB::bind_method(D_METHOD("has_undo"), &LineEdit::has_undo);
+ ClassDB::bind_method(D_METHOD("has_redo"), &LineEdit::has_redo);
ClassDB::bind_method(D_METHOD("has_selection"), &LineEdit::has_selection);
ClassDB::bind_method(D_METHOD("get_selected_text"), &LineEdit::get_selected_text);
ClassDB::bind_method(D_METHOD("get_selection_from_column"), &LineEdit::get_selection_from_column);