Rename hint_tooltip to tooltip_text & setget
`hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
This commit is contained in:
@ -1015,13 +1015,13 @@ FileDialog::FileDialog() {
|
||||
|
||||
dir_prev = memnew(Button);
|
||||
dir_prev->set_flat(true);
|
||||
dir_prev->set_tooltip(RTR("Go to previous folder."));
|
||||
dir_prev->set_tooltip_text(RTR("Go to previous folder."));
|
||||
dir_next = memnew(Button);
|
||||
dir_next->set_flat(true);
|
||||
dir_next->set_tooltip(RTR("Go to next folder."));
|
||||
dir_next->set_tooltip_text(RTR("Go to next folder."));
|
||||
dir_up = memnew(Button);
|
||||
dir_up->set_flat(true);
|
||||
dir_up->set_tooltip(RTR("Go to parent folder."));
|
||||
dir_up->set_tooltip_text(RTR("Go to parent folder."));
|
||||
hbc->add_child(dir_prev);
|
||||
hbc->add_child(dir_next);
|
||||
hbc->add_child(dir_up);
|
||||
@ -1045,7 +1045,7 @@ FileDialog::FileDialog() {
|
||||
|
||||
refresh = memnew(Button);
|
||||
refresh->set_flat(true);
|
||||
refresh->set_tooltip(RTR("Refresh files."));
|
||||
refresh->set_tooltip_text(RTR("Refresh files."));
|
||||
refresh->connect("pressed", callable_mp(this, &FileDialog::update_file_list));
|
||||
hbc->add_child(refresh);
|
||||
|
||||
@ -1053,7 +1053,7 @@ FileDialog::FileDialog() {
|
||||
show_hidden->set_flat(true);
|
||||
show_hidden->set_toggle_mode(true);
|
||||
show_hidden->set_pressed(is_showing_hidden_files());
|
||||
show_hidden->set_tooltip(RTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->set_tooltip_text(RTR("Toggle the visibility of hidden files."));
|
||||
show_hidden->connect("toggled", callable_mp(this, &FileDialog::set_show_hidden_files));
|
||||
hbc->add_child(show_hidden);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user