Add toolbar option to reset font + language settings (#12199)

This commit is contained in:
Juergen Spitzmueller 2022-12-18 16:36:30 +01:00
parent 97c9404b71
commit 4a3871f5db

View File

@ -439,12 +439,18 @@ void DynamicMenuButton::updateTriggered()
default_act = act;
++i;
}
// Add item to reset to defaults
// Add items to reset to defaults
Action * reset_act = new Action(FuncRequest(LFUN_FONT_DEFAULT, FuncRequest::TOOLBAR),
icon_undo_,
qt_("&Reset to default"),
qt_("Reset all font settings to their defaults"), this);
qt_("&Reset to default (keep language)"),
qt_("Reset all font settings to their defaults but keep language settings"), this);
m->addAction(reset_act);
Action * reset_act_lang = new Action(FuncRequest(LFUN_COMMAND_SEQUENCE, "font-default ; language reset",
FuncRequest::TOOLBAR),
icon_undo_,
qt_("Reset to default (including &language)"),
qt_("Reset all font settings and the language to their defaults"), this);
m->addAction(reset_act_lang);
if (default_act)
QToolButton::setDefaultAction(default_act);
QToolButton::setIcon(icon_textstyle_apply_);