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