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

Method toVariant

qrenderdoc/Code/Interface/Analytics.h:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 QVariant toVariant(bool reporting) const
82 {
83 if(reporting)
84 {
85 if(Count == 0)
86 return 0.0;
87 return Total / double(Count);
88 }
89
90 QVariantMap ret;
91 ret[lit("Total")] = Total;
92 ret[lit("Count")] = Count;
93 return ret;
94 }
95};
96
97class PersistantConfig;

Callers 3

LoadFromJSONFunction · 0.80
JSONToVariantFunction · 0.80
analyticsToVarFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected