| 34 | } |
| 35 | |
| 36 | void PropertyInt4Control::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 | bool validate = isValidate(); |
| 46 | setColour(validate); |
| 47 | } |
| 48 | else |
| 49 | { |
| 50 | mEdit->setCaption(MyGUI::UString()); |
| 51 | mEdit->setEnabled(false); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | void PropertyInt4Control::notifyEditTextChange(MyGUI::EditBox* _sender) |
| 56 | { |
nothing calls this directly
no test coverage detected