Kaydet (Commit) 8b0a9db8 authored tarafından Aleksei Nikiforov's avatar Aleksei Nikiforov Kaydeden (comit) Michael Weghorn

tdf#120824 KDE5: fix visible/enabled state for menu

Change-Id: I003703f0bc2e1697124e068a68bfb2e24c33cd1a
Reviewed-on: https://gerrit.libreoffice.org/68351
Tested-by: Jenkins
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
(cherry picked from commit ea6b4b74)
Reviewed-on: https://gerrit.libreoffice.org/68412Reviewed-by: 's avatarMichael Weghorn <m.weghorn@posteo.de>
üst e0e3064e
......@@ -157,15 +157,19 @@ QMenu* Qt5Menu::InsertMenuItem(Qt5MenuItem* pSalMenuItem, unsigned nPos)
pAction->setChecked(bChecked);
}
pAction->setEnabled(pSalMenuItem->mbEnabled);
pAction->setVisible(pSalMenuItem->mbVisible);
connect(pAction, &QAction::triggered, this,
[pSalMenuItem] { slotMenuTriggered(pSalMenuItem); });
}
}
}
QAction* pAction = pSalMenuItem->getAction();
if (pAction)
{
pAction->setEnabled(pSalMenuItem->mbEnabled);
pAction->setVisible(pSalMenuItem->mbVisible);
}
return pQMenu;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment