Gui: ActionGroup also get its tooltip title updated

This commit is contained in:
0penBrain
2022-11-17 10:09:23 +01:00
committed by Uwe
parent f11092affd
commit 5429aeef3f

View File

@@ -544,7 +544,7 @@ void ActionGroup::setCheckedAction(int index)
this->setIcon(act->icon());
if (!this->_isMode) {
this->setToolTip(act->toolTip());
this->setToolTip(act->toolTip(), act->text());
}
this->setProperty("defaultAction", QVariant(index));
}
@@ -572,7 +572,7 @@ void ActionGroup::onActivated (QAction* act)
this->setIcon(act->icon());
if (!this->_isMode) {
this->setToolTip(act->toolTip());
this->setToolTip(act->toolTip(), act->text());
}
this->setProperty("defaultAction", QVariant(index));
command()->invoke(index, Command::TriggerChildAction);