Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmaextracomponents/fallbackcomponent.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 52 | { | |||
---|---|---|---|---|---|
53 | m_candidates = candidates; | 53 | m_candidates = candidates; | ||
54 | emit candidatesChanged(); | 54 | emit candidatesChanged(); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | QString FallbackComponent::filePath(const QString &key) | 57 | QString FallbackComponent::filePath(const QString &key) | ||
58 | { | 58 | { | ||
59 | QString resolved; | 59 | QString resolved; | ||
60 | 60 | | |||
61 | foreach (const QString &path, m_candidates) { | 61 | for (const QString &path : qAsConst(m_candidates)) { | ||
62 | // qDebug() << "Searching for:" << path + path; | 62 | // qDebug() << "Searching for:" << path + path; | ||
63 | if (m_possiblePaths.contains(path + key)) { | 63 | if (m_possiblePaths.contains(path + key)) { | ||
64 | resolved = *m_possiblePaths.object(path + key); | 64 | resolved = *m_possiblePaths.object(path + key); | ||
65 | if (!resolved.isEmpty()) { | 65 | if (!resolved.isEmpty()) { | ||
66 | break; | 66 | break; | ||
67 | } else { | 67 | } else { | ||
68 | continue; | 68 | continue; | ||
69 | } | 69 | } | ||
Show All 20 Lines |