Improve path search behavior discoverability in the project manager

This closes #38185.

(cherry picked from commit 72da1667e0)
This commit is contained in:
Hugo Locurcio 2020-04-25 21:59:22 +02:00 committed by Rémi Verschelde
parent 8b33b08c29
commit 93ba25cfcb
1 changed files with 2 additions and 0 deletions

View File

@ -2758,6 +2758,8 @@ void ProjectListFilter::add_filter_option() {
void ProjectListFilter::add_search_box() { void ProjectListFilter::add_search_box() {
search_box = memnew(LineEdit); search_box = memnew(LineEdit);
search_box->set_placeholder(TTR("Search")); search_box->set_placeholder(TTR("Search"));
search_box->set_tooltip(
TTR("The search box filters projects by name and last path component.\nTo filter projects by name and full path, the query must contain at least one `/` character."));
search_box->connect("text_changed", this, "_search_text_changed"); search_box->connect("text_changed", this, "_search_text_changed");
search_box->set_h_size_flags(SIZE_EXPAND_FILL); search_box->set_h_size_flags(SIZE_EXPAND_FILL);
add_child(search_box); add_child(search_box);