void ButtonGroupMenu::selectGroup() { // Select and make current button "current" again by selecting it last (if there is any) const ButtonList buttons = m_buttonGroup->buttons(); m_formWindow->clearSelection(false); const ButtonList::const_iterator cend = buttons.constEnd(); for (ButtonList::const_iterator it = buttons.constBegin(); it != cend; ++it) if (*it != m_currentButton) m_formWindow->selectWidget(*it, true); if (m_currentButton) m_formWindow->selectWidget(m_currentButton, true); }