| 423 | } |
| 424 | |
| 425 | bool LayoutComboboxControl::setSelectionIntValue(int value) { |
| 426 | for (int i = 0; i < (int)this->options.data.size(); i++) { |
| 427 | if (this->options.data[i].intValue == value) { |
| 428 | this->setSelection(i); |
| 429 | return true; |
| 430 | } |
| 431 | } |
| 432 | return false; |
| 433 | } |
| 434 | |
| 435 | LayoutControl::LayoutControl(std::shared_ptr<LayoutRow> row, LayoutControlType type) : row(row), width(-1), type(type), readOnly(false), font(nullptr) { |
| 436 | } |
no test coverage detected