Get the full path of a resource in a theme file
| 1043 | |
| 1044 | // Get the full path of a resource in a theme file |
| 1045 | QString 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 |
no test coverage detected