| 51 | } |
| 52 | |
| 53 | void PropertyInt2ListControl::updateProperty() |
| 54 | { |
| 55 | PropertyPtr proper = getProperty(); |
| 56 | if (proper != nullptr) |
| 57 | { |
| 58 | mList->setEnabled(!proper->getType()->getReadOnly()); |
| 59 | std::string value = getValue(); |
| 60 | if (value != proper->getValue()) |
| 61 | setValue(proper->getValue()); |
| 62 | } |
| 63 | else |
| 64 | { |
| 65 | mList->removeAllItems(); |
| 66 | mList->setEnabled(false); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | std::string PropertyInt2ListControl::getValue() |
| 71 | { |
nothing calls this directly
no test coverage detected