Add tooltips to Export dialog icon buttons

(cherry picked from commit f78943b08b)
This commit is contained in:
Haoyu Qiu 2022-06-10 18:38:46 +08:00 committed by Rémi Verschelde
parent 5569d4d2de
commit 4da772d5c9
1 changed files with 2 additions and 0 deletions

View File

@ -1003,9 +1003,11 @@ ProjectExportDialog::ProjectExportDialog() {
mc->add_child(presets);
presets->connect("item_selected", this, "_edit_preset");
duplicate_preset = memnew(ToolButton);
duplicate_preset->set_tooltip(TTR("Duplicate"));
preset_hb->add_child(duplicate_preset);
duplicate_preset->connect("pressed", this, "_duplicate_preset");
delete_preset = memnew(ToolButton);
delete_preset->set_tooltip(TTR("Delete"));
preset_hb->add_child(delete_preset);
delete_preset->connect("pressed", this, "_delete_preset");