Merge pull request #19253 from Jonezzzzz/SketcherGroupCommandsFix

Sketcher: Fixed Inconsistency between button tooltips and labeling for shortcuts.
This commit is contained in:
Chris Hennes
2025-02-23 22:20:07 +00:00
committed by GitHub
3 changed files with 927 additions and 1176 deletions

View File

@@ -1121,6 +1121,8 @@ void GroupCommand::setup(Action *pcAction) {
int idx = pcAction->property("defaultAction").toInt();
if(idx>=0 && idx<(int)cmds.size() && cmds[idx].first) {
auto cmd = cmds[idx].first;
QString shortcut = cmd->getShortcut();
pcAction->setShortcut(shortcut);
pcAction->setText(QCoreApplication::translate(className(), getMenuText()));
QIcon icon;
if (auto childAction = cmd->getAction())

File diff suppressed because it is too large Load Diff