| 62 | } |
| 63 | |
| 64 | void PropertyAlignControl::updateProperty() |
| 65 | { |
| 66 | PropertyPtr proper = getProperty(); |
| 67 | if (proper != nullptr) |
| 68 | { |
| 69 | mComboBox->setEnabled(!proper->getType()->getReadOnly()); |
| 70 | size_t index = getComboIndex(proper->getValue()); |
| 71 | mComboBox->setIndexSelected(index); |
| 72 | } |
| 73 | else |
| 74 | { |
| 75 | mComboBox->setIndexSelected(MyGUI::ITEM_NONE); |
| 76 | mComboBox->setEnabled(false); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void PropertyAlignControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index) |
| 81 | { |
nothing calls this directly
no test coverage detected