| 34 | } |
| 35 | |
| 36 | void PropertyStringControl::updateProperty() |
| 37 | { |
| 38 | PropertyPtr proper = getProperty(); |
| 39 | if (proper != nullptr) |
| 40 | { |
| 41 | mEdit->setEnabled(!proper->getType()->getReadOnly()); |
| 42 | if (mEdit->getOnlyText() != proper->getValue()) |
| 43 | mEdit->setCaption(proper->getValue()); |
| 44 | } |
| 45 | else |
| 46 | { |
| 47 | mEdit->setCaption(MyGUI::UString()); |
| 48 | mEdit->setEnabled(false); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | void PropertyStringControl::notifyEditTextChange(MyGUI::EditBox* _sender) |
| 53 | { |
nothing calls this directly
no test coverage detected