| 40 | } |
| 41 | |
| 42 | void PropertyBoolControl::updateProperty() |
| 43 | { |
| 44 | PropertyPtr proper = getProperty(); |
| 45 | if (proper != nullptr) |
| 46 | { |
| 47 | mComboBox->setEnabled(!proper->getType()->getReadOnly()); |
| 48 | size_t index = getComboIndex(proper->getValue()); |
| 49 | mComboBox->setIndexSelected(index); |
| 50 | } |
| 51 | else |
| 52 | { |
| 53 | mComboBox->setIndexSelected(MyGUI::ITEM_NONE); |
| 54 | mComboBox->setEnabled(false); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void PropertyBoolControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index) |
| 59 | { |
nothing calls this directly
no test coverage detected