src/hierarchyelement.cpp

changeset 1323
05b3e173c900
parent 1251
e75cc5bff076
child 1326
69a90bd2dba2
equal deleted inserted replaced
1322:d8935cdb24c0 1323:05b3e173c900
40 this, parent, parent ? parent->metaObject()->className() : "nullptr"); 40 this, parent, parent ? parent->metaObject()->className() : "nullptr");
41 throw std::runtime_error {error.toUtf8().constData()}; 41 throw std::runtime_error {error.toUtf8().constData()};
42 } 42 }
43 43
44 m_documents = m_window->documents(); 44 m_documents = m_window->documents();
45 m_config = m_window->config();
46 } 45 }
47 46
48 47
49 GuiUtilities* HierarchyElement::guiUtilities() const 48 GuiUtilities* HierarchyElement::guiUtilities() const
50 { 49 {
83 82
84 83
85 QString HierarchyElement::preferredLicenseText() const 84 QString HierarchyElement::preferredLicenseText() const
86 { 85 {
87 QString caLicenseText = "!LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt"; 86 QString caLicenseText = "!LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt";
88 return m_config->useCaLicense() ? caLicenseText : ""; 87 return config::useCaLicense() ? caLicenseText : "";
89 } 88 }

mercurial