MCPcopy Create free account
hub / github.com/KDE/labplot / themeFilePath

Method themeFilePath

src/frontend/ThemeHandler.cpp:121–135  ·  view source on GitHub ↗

! * get path for theme of name 'name' */

Source from the content-addressed store, hash-verified

119 * get path for theme of name 'name'
120 */
121const 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

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
fileNameMethod · 0.45

Tested by

no test coverage detected