mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Use more convenient MenuButtonPopup
This commit is contained in:
parent
bb73e93af7
commit
eb1b88aba7
@ -386,7 +386,7 @@ void DynamicMenuButton::updateTriggered()
|
||||
QToolButton::setDefaultAction(default_act);
|
||||
QToolButton::setIcon(getIcon(FuncRequest(LFUN_TEXTSTYLE_APPLY), false));
|
||||
}
|
||||
setPopupMode(QToolButton::DelayedPopup);
|
||||
setPopupMode(QToolButton::MenuButtonPopup);
|
||||
setEnabled(lyx::getStatus(FuncRequest(LFUN_TEXTSTYLE_APPLY)).enabled());
|
||||
} else if (menutype == "paste") {
|
||||
m->clear();
|
||||
@ -408,7 +408,7 @@ void DynamicMenuButton::updateTriggered()
|
||||
getIcon(FuncRequest(LFUN_PASTE), false),
|
||||
qt_("Paste"), qt_("Paste"), this);
|
||||
QToolButton::setDefaultAction(default_action);
|
||||
setPopupMode(QToolButton::DelayedPopup);
|
||||
setPopupMode(QToolButton::MenuButtonPopup);
|
||||
setEnabled(lyx::getStatus(FuncRequest(LFUN_PASTE)).enabled());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user