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