| 347 | } |
| 348 | |
| 349 | std::shared_ptr<LayoutComboboxControl> LayoutRow::addComboBox(const std::vector<ComboboxItem>& options, int selected) { |
| 350 | std::shared_ptr<LayoutComboboxControl> control = std::make_shared<LayoutComboboxControl>(shared_from_this()); |
| 351 | control->setOptions(options); |
| 352 | if (selected) { |
| 353 | control->setSelection(selected); |
| 354 | } |
| 355 | this->controls.push_back(control); |
| 356 | return control; |
| 357 | } |
| 358 | |
| 359 | std::shared_ptr<LayoutComboboxControl> LayoutRow::addComboBox() { |
| 360 | std::shared_ptr<LayoutComboboxControl> control = std::make_shared<LayoutComboboxControl>(shared_from_this()); |
no test coverage detected