| 48 | } |
| 49 | |
| 50 | void PropertyRegionTypeControl::updateProperty() |
| 51 | { |
| 52 | PropertyPtr proper = getProperty(); |
| 53 | if (proper != nullptr) |
| 54 | { |
| 55 | mComboBox->setEnabled(!proper->getType()->getReadOnly()); |
| 56 | size_t index = getComboIndex(proper->getValue()); |
| 57 | mComboBox->setIndexSelected(index); |
| 58 | } |
| 59 | else |
| 60 | { |
| 61 | mComboBox->setIndexSelected(MyGUI::ITEM_NONE); |
| 62 | mComboBox->setEnabled(false); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | void PropertyRegionTypeControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index) |
| 67 | { |
nothing calls this directly
no test coverage detected