! * get path for theme of name 'name' */
| 119 | * get path for theme of name 'name' |
| 120 | */ |
| 121 | const QString ThemeHandler::themeFilePath(const QString& name) { |
| 122 | DEBUG(Q_FUNC_INFO << ", name = " << STDSTRING(name)); |
| 123 | QStringList themePaths = themeList(); |
| 124 | |
| 125 | for (int i = 0; i < themePaths.size(); ++i) { |
| 126 | const QString& path = themePaths.at(i); |
| 127 | const QString& fileName = QFileInfo(path).fileName(); |
| 128 | if (fileName == name) { |
| 129 | DEBUG(" theme \"" << STDSTRING(name) << "\" path: " << STDSTRING(path)); |
| 130 | return path; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | return {}; |
| 135 | } |
| 136 | |
| 137 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 138 |