Exemple #1
0
/*! Turns on button with ID [id] in button group [group], with signals blocked.
 * The ID must be explicitly assigned such as when adding the button to the 
 * group. */
void diaSetGroup(QButtonGroup *group, int id)
{
  QAbstractButton *button = group->button(id);
  if (!button)
    return;
  button->blockSignals(true);
  button->setChecked(true);
  button->blockSignals(false);
}