mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Add toolbar option to reset font + language settings (#12199)
This commit is contained in:
parent
97c9404b71
commit
4a3871f5db
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user