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

Method updateProperty

Tools/FontEditor/PropertyFontSourceControl.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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