[LyX/master] Add toolbar option to reset font + language settings (#12199)
Juergen Spitzmueller
spitz at lyx.org
Sun Dec 18 14:40:40 UTC 2022
commit 4a3871f5db58de28d8afd8ffcd1045d374dc6ca9
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sun Dec 18 16:36:30 2022 +0100
Add toolbar option to reset font + language settings (#12199)
---
src/frontends/qt/GuiToolbar.cpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/frontends/qt/GuiToolbar.cpp b/src/frontends/qt/GuiToolbar.cpp
index cc61f2f..ba12442 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_);
More information about the lyx-cvs
mailing list