From 4a3871f5db58de28d8afd8ffcd1045d374dc6ca9 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 18 Dec 2022 16:36:30 +0100 Subject: [PATCH] Add toolbar option to reset font + language settings (#12199) --- src/frontends/qt/GuiToolbar.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp index cc61f2f665..ba12442414 100644 --- a/src/frontends/qt/GuiToolbar.cpp +++ b/src/frontends/qt/GuiToolbar.cpp @@ -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_);