mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
Always set main Icon Button to the QMenuButton
This commit is contained in:
parent
cb84f752f2
commit
d50e02d07c
@ -386,10 +386,11 @@ void DynamicMenuButton::updateTriggered()
|
||||
Action * dact = new Action(FuncRequest(LFUN_FONT_DEFAULT, FuncRequest::TOOLBAR), getIcon(FuncRequest(LFUN_UNDO), false),
|
||||
qt_("&Reset to default"), qt_("Reset all font settings to their defaults"), this);
|
||||
m->addAction(dact);
|
||||
if (default_act) {
|
||||
if (default_act)
|
||||
QToolButton::setDefaultAction(default_act);
|
||||
QToolButton::setIcon(getIcon(FuncRequest(LFUN_TEXTSTYLE_APPLY), false));
|
||||
}
|
||||
|
||||
QToolButton::setIcon(getIcon(FuncRequest(LFUN_TEXTSTYLE_APPLY), false));
|
||||
|
||||
setPopupMode(QToolButton::MenuButtonPopup);
|
||||
setEnabled(lyx::getStatus(FuncRequest(LFUN_TEXTSTYLE_APPLY)).enabled()
|
||||
|| lyx::getStatus(FuncRequest(LFUN_FONT_DEFAULT)).enabled());
|
||||
|
Loading…
Reference in New Issue
Block a user