summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-12 16:36:40 +0200
committerGitHub <noreply@github.com>2022-05-12 16:36:40 +0200
commita38aafca3e25a5a2b7da497f0dd4baa9d5423605 (patch)
tree2f0a1fe2d8c75e731800656ccd2697ddd2889819 /editor
parentea9064c01f27351369c5c89d2c320ab051c47802 (diff)
parenta439832035a0a07426b4557b4286b2e2e4992054 (diff)
Merge pull request #60970 from Chaosus/gds_fix_signal_completion
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/script_text_editor.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 981881fb9b..bed7739239 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -855,6 +855,21 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c
emit_signal(SNAME("go_to_help"), "class_method:" + result.class_name + ":" + result.class_member);
} break;
+ case ScriptLanguage::LOOKUP_RESULT_CLASS_SIGNAL: {
+ StringName cname = result.class_name;
+
+ while (true) {
+ if (ClassDB::has_signal(cname, result.class_member)) {
+ result.class_name = cname;
+ cname = ClassDB::get_parent_class(cname);
+ } else {
+ break;
+ }
+ }
+
+ emit_signal(SNAME("go_to_help"), "class_signal:" + result.class_name + ":" + result.class_member);
+
+ } break;
case ScriptLanguage::LOOKUP_RESULT_CLASS_ENUM: {
StringName cname = result.class_name;
StringName success;