Drop `TreeSearchPanel::set_text`.
This commit is contained in:
parent
10c8f58ca9
commit
683834f58e
|
@ -544,17 +544,13 @@ TreeSearch::SearchInfo TreeSearchPanel::get_search_info() const {
|
|||
return result;
|
||||
}
|
||||
|
||||
void TreeSearchPanel::set_search_info(TreeSearch::SearchInfo p_search_info) {
|
||||
void TreeSearchPanel::set_search_info(const TreeSearch::SearchInfo &p_search_info) {
|
||||
line_edit_search->set_text(p_search_info.search_mask);
|
||||
check_button_filter_highlight->set_pressed(p_search_info.search_mode == TreeSearch::TreeSearchMode::FILTER);
|
||||
set_visible(p_search_info.visible);
|
||||
emit_signal("update_requested");
|
||||
}
|
||||
|
||||
void TreeSearchPanel::set_text(const String &p_text) {
|
||||
line_edit_search->set_text(p_text);
|
||||
}
|
||||
|
||||
void TreeSearchPanel::focus_editor() {
|
||||
line_edit_search->grab_focus();
|
||||
}
|
||||
|
|
|
@ -138,11 +138,10 @@ protected:
|
|||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
TreeSearch::TreeSearchMode get_search_mode() const;
|
||||
String get_text() const;
|
||||
TreeSearch::TreeSearchMode get_search_mode() const;
|
||||
TreeSearch::SearchInfo get_search_info() const;
|
||||
void set_search_info(TreeSearch::SearchInfo p_search_info);
|
||||
void set_text(const String &p_text);
|
||||
void set_search_info(const TreeSearch::SearchInfo &p_search_info);
|
||||
void focus_editor();
|
||||
TreeSearchPanel();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue