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

Method updateProperty

Tools/SkinEditor/PropertyRegionTypeControl.cpp:50–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 void PropertyRegionTypeControl::updateProperty()
51 {
52 PropertyPtr proper = getProperty();
53 if (proper != nullptr)
54 {
55 mComboBox->setEnabled(!proper->getType()->getReadOnly());
56 size_t index = getComboIndex(proper->getValue());
57 mComboBox->setIndexSelected(index);
58 }
59 else
60 {
61 mComboBox->setIndexSelected(MyGUI::ITEM_NONE);
62 mComboBox->setEnabled(false);
63 }
64 }
65
66 void PropertyRegionTypeControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index)
67 {

Callers

nothing calls this directly

Calls 5

getReadOnlyMethod · 0.80
setEnabledMethod · 0.45
getTypeMethod · 0.45
getValueMethod · 0.45
setIndexSelectedMethod · 0.45

Tested by

no test coverage detected