MCPcopy Create free account
hub / github.com/MyGUI/mygui / updateProperty

Method updateProperty

Tools/FontEditor/PropertyInt2ListControl.cpp:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

getReadOnlyMethod · 0.80
getValueFunction · 0.50
setValueFunction · 0.50
setEnabledMethod · 0.45
getTypeMethod · 0.45
getValueMethod · 0.45
removeAllItemsMethod · 0.45

Tested by

no test coverage detected