Add 'removeAllRadioButtons()'

This commit is contained in:
Neo Kim 2015-07-28 20:23:22 +09:00
parent 202b549073
commit 887efdca1b
2 changed files with 13 additions and 0 deletions

View File

@ -224,6 +224,14 @@ void RadioButtonGroup::removeRadioButton(RadioButton* radioButton)
}
}
void RadioButtonGroup::removeAllRadioButtons()
{
while(!_radioButtons.empty())
{
removeRadioButton(_radioButtons.at(0));
}
}
ssize_t RadioButtonGroup::getNumberOfRadioButtons() const
{
return _radioButtons.size();

View File

@ -218,6 +218,11 @@ public:
*/
virtual void removeRadioButton(RadioButton* radioButton);
/**
* Remove all radio button from this group.
*/
virtual void removeAllRadioButtons();
/**
* Get the number of radio buttons in this group.
*