summaryrefslogtreecommitdiffstats
path: root/editor/editor_help_search.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-05-14 09:40:21 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-05-14 15:51:28 +0200
commitee79386f7b5620c3d1ed18d24de7b9a4731602d4 (patch)
tree9740ef15899f7714cc81fc8cb018553ef5593d94 /editor/editor_help_search.cpp
parent78cce1954ddb6fefb90b33742215f304ec7b0b94 (diff)
downloadredot-engine-ee79386f7b5620c3d1ed18d24de7b9a4731602d4.tar.gz
[Scene] Add SceneStringNames::pressed
Diffstat (limited to 'editor/editor_help_search.cpp')
-rw-r--r--editor/editor_help_search.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index 0a6802fb7c..f42cc62fe2 100644
--- a/editor/editor_help_search.cpp
+++ b/editor/editor_help_search.cpp
@@ -323,7 +323,7 @@ EditorHelpSearch::EditorHelpSearch() {
case_sensitive_button = memnew(Button);
case_sensitive_button->set_theme_type_variation("FlatButton");
case_sensitive_button->set_tooltip_text(TTR("Case Sensitive"));
- case_sensitive_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
+ case_sensitive_button->connect(SceneStringName(pressed), callable_mp(this, &EditorHelpSearch::_update_results));
case_sensitive_button->set_toggle_mode(true);
case_sensitive_button->set_focus_mode(Control::FOCUS_NONE);
hbox->add_child(case_sensitive_button);
@@ -331,7 +331,7 @@ EditorHelpSearch::EditorHelpSearch() {
hierarchy_button = memnew(Button);
hierarchy_button->set_theme_type_variation("FlatButton");
hierarchy_button->set_tooltip_text(TTR("Show Hierarchy"));
- hierarchy_button->connect("pressed", callable_mp(this, &EditorHelpSearch::_update_results));
+ hierarchy_button->connect(SceneStringName(pressed), callable_mp(this, &EditorHelpSearch::_update_results));
hierarchy_button->set_toggle_mode(true);
hierarchy_button->set_pressed(true);
hierarchy_button->set_focus_mode(Control::FOCUS_NONE);