MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getResourceFileName

Method getResourceFileName

global.cpp:1045–1052  ·  view source on GitHub ↗

Get the full path of a resource in a theme file

Source from the content-addressed store, hash-verified

1043
1044// Get the full path of a resource in a theme file
1045QString Global::getResourceFileName(QHash<QString,QString> &resourceList, QString key) {
1046 if (resourceList.contains(key) && resourceList[key].trimmed()!="")
1047 return resourceList[key];
1048
1049 // If we have a default resource
1050 QString fileName = key.remove(":");
1051 return fileManager.getImageDirPath("")+fileName;
1052}
1053
1054
1055

Callers 4

reloadIconsMethod · 0.80
setupHelpMenuMethod · 0.80
openThemeInformationMethod · 0.80
saveValuesMethod · 0.80

Calls 2

removeMethod · 0.80
getImageDirPathMethod · 0.80

Tested by

no test coverage detected