Gui: ActionGroup also get its tooltip title updated
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user