MCPcopy Create free account
hub / github.com/baldurk/renderdoc / anyChildChanged

Function anyChildChanged

qrenderdoc/Windows/Dialogs/ConfigEditor.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static bool anyChildChanged(const SDObject *o)
61{
62 const SDObject *def = o->FindChild("default");
63 const SDObject *val = o->FindChild("value");
64
65 if(val && def)
66 return !val->HasEqualValue(def);
67
68 for(const SDObject *c : *o)
69 {
70 if(anyChildChanged(c))
71 return true;
72 }
73
74 return false;
75}
76
77class SettingModel : public QAbstractItemModel
78{

Callers 1

dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected