Add tooltips to Export dialog icon buttons

(cherry picked from commit f78943b08b4568dc1c7aa85e1d6b351f18f9472c)
This commit is contained in:
Haoyu Qiu 2022-06-10 18:38:46 +08:00 committed by Relintai
parent 264985d204
commit ddac7ae8ed

View File

@ -1011,9 +1011,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");