Also copy checkable property to platform item
Add missing property copy statement. Change-Id: Ic7cae46becd412194a490d0fe501ce6ebe2737a3 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
This commit is contained in:
parent
c4b88b0540
commit
78d4c949a4
@ -2840,7 +2840,7 @@ QMenu::timerEvent(QTimerEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
void copyActionToPlatformItem(const QAction *action, QPlatformMenuItem* item)
|
||||
static void copyActionToPlatformItem(const QAction *action, QPlatformMenuItem* item)
|
||||
{
|
||||
item->setText(action->text());
|
||||
item->setIsSeparator(action->isSeparator());
|
||||
@ -2848,6 +2848,7 @@ void copyActionToPlatformItem(const QAction *action, QPlatformMenuItem* item)
|
||||
item->setIcon(action->icon());
|
||||
item->setVisible(action->isVisible());
|
||||
item->setShortcut(action->shortcut());
|
||||
item->setCheckable(action->isCheckable());
|
||||
item->setChecked(action->isChecked());
|
||||
item->setFont(action->font());
|
||||
item->setRole((QPlatformMenuItem::MenuRole) action->menuRole());
|
||||
|
Loading…
Reference in New Issue
Block a user