Gui: [skip ci] fixes: Std_DrawStyle button image: confusing update behavior
This commit is contained in:
@@ -323,8 +323,11 @@ int ActionGroup::checkedAction() const
|
||||
|
||||
void ActionGroup::setCheckedAction(int i)
|
||||
{
|
||||
_group->actions()[i]->setChecked(true);
|
||||
this->setIcon(_group->actions()[i]->icon());
|
||||
QAction* a = _group->actions()[i];
|
||||
a->setChecked(true);
|
||||
this->setIcon(a->icon());
|
||||
this->setToolTip(a->toolTip());
|
||||
this->setProperty("defaultAction", QVariant(i));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user