| 434 | } |
| 435 | |
| 436 | void ScriptEditorQuickOpen::_notification(int p_what) { |
| 437 | switch (p_what) { |
| 438 | case NOTIFICATION_ENTER_TREE: { |
| 439 | connect(SceneStringName(confirmed), callable_mp(this, &ScriptEditorQuickOpen::_confirmed)); |
| 440 | |
| 441 | search_box->set_clear_button_enabled(true); |
| 442 | [[fallthrough]]; |
| 443 | } |
| 444 | case NOTIFICATION_VISIBILITY_CHANGED: { |
| 445 | search_box->set_right_icon(search_options->get_editor_theme_icon(SNAME("Search"))); |
| 446 | } break; |
| 447 | |
| 448 | case NOTIFICATION_EXIT_TREE: { |
| 449 | disconnect(SceneStringName(confirmed), callable_mp(this, &ScriptEditorQuickOpen::_confirmed)); |
| 450 | } break; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | void ScriptEditorQuickOpen::_bind_methods() { |
| 455 | ADD_SIGNAL(MethodInfo("goto_line", PropertyInfo(Variant::INT, "line"))); |
nothing calls this directly
no test coverage detected