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

Method updateProperty

Tools/EditorFramework/PropertyStringControl.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void PropertyStringControl::updateProperty()
37 {
38 PropertyPtr proper = getProperty();
39 if (proper != nullptr)
40 {
41 mEdit->setEnabled(!proper->getType()->getReadOnly());
42 if (mEdit->getOnlyText() != proper->getValue())
43 mEdit->setCaption(proper->getValue());
44 }
45 else
46 {
47 mEdit->setCaption(MyGUI::UString());
48 mEdit->setEnabled(false);
49 }
50 }
51
52 void PropertyStringControl::notifyEditTextChange(MyGUI::EditBox* _sender)
53 {

Callers

nothing calls this directly

Calls 7

UStringFunction · 0.85
getReadOnlyMethod · 0.80
setEnabledMethod · 0.45
getTypeMethod · 0.45
getOnlyTextMethod · 0.45
getValueMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected