* Changes the currently selected option. * @param sel Selected row. */
| 240 | * @param sel Selected row. |
| 241 | */ |
| 242 | void ComboBox::setSelected(size_t sel) |
| 243 | { |
| 244 | _sel = sel; |
| 245 | if (_sel < _list->getTexts()) |
| 246 | { |
| 247 | _button->setText(_list->getCellText(_sel, 0)); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Updates the size of the dropdown list based on |
no test coverage detected