MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / PreferencePage

Method PreferencePage

radiantcore/settings/PreferencePage.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14
15PreferencePage::PreferencePage(const std::string& name, const PreferencePagePtr& parentPage) :
16 _name(name)
17{
18 _title = fmt::format(_("{0} Settings"), _name);
19
20 // Construct the _path member value
21 if (parentPage && !parentPage->getPath().empty())
22 {
23 _path = parentPage->getPath() + "/" + _name;
24 }
25 else
26 {
27 _path = _name;
28 }
29}
30
31const std::string& PreferencePage::getTitle() const
32{

Callers

nothing calls this directly

Calls 4

getPathMethod · 0.80
formatFunction · 0.50
_Function · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected