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

Method updateProperty

Tools/EditorFramework/PropertyBoolControl.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void PropertyBoolControl::updateProperty()
43 {
44 PropertyPtr proper = getProperty();
45 if (proper != nullptr)
46 {
47 mComboBox->setEnabled(!proper->getType()->getReadOnly());
48 size_t index = getComboIndex(proper->getValue());
49 mComboBox->setIndexSelected(index);
50 }
51 else
52 {
53 mComboBox->setIndexSelected(MyGUI::ITEM_NONE);
54 mComboBox->setEnabled(false);
55 }
56 }
57
58 void PropertyBoolControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index)
59 {

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