mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Convert TextEdit callbacks to Callable
This commit is contained in:
parent
2d1080e430
commit
f43f68f605
12 changed files with 48 additions and 57 deletions
|
@ -272,8 +272,10 @@ void TextEditor::update_settings() {
|
|||
code_editor->update_editor_settings();
|
||||
}
|
||||
|
||||
void TextEditor::set_tooltip_request_func(String p_method, Object *p_obj) {
|
||||
code_editor->get_text_editor()->set_tooltip_request_func(p_obj, p_method, this);
|
||||
void TextEditor::set_tooltip_request_func(const Callable &p_toolip_callback) {
|
||||
Variant args[1] = { this };
|
||||
const Variant *argp[] = { &args[0] };
|
||||
code_editor->get_text_editor()->set_tooltip_request_func(p_toolip_callback.bind(argp, 1));
|
||||
}
|
||||
|
||||
Control *TextEditor::get_edit_menu() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue