Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/navigation/problemnavigationcontext.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 49 | case IProblem::NoSeverity: | |||
---|---|---|---|---|---|
50 | return {}; | 50 | return {}; | ||
51 | } | 51 | } | ||
52 | Q_UNREACHABLE(); | 52 | Q_UNREACHABLE(); | ||
53 | return {}; | 53 | return {}; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | QString htmlImg(const QString& iconName, KIconLoader::Group group) | 56 | QString htmlImg(const QString& iconName, KIconLoader::Group group) | ||
57 | { | 57 | { | ||
58 | KIconLoader loader; | 58 | auto* loader = KIconLoader::global(); | ||
59 | const int size = loader.currentSize(group); | 59 | const int size = loader->currentSize(group); | ||
60 | return QStringLiteral("<img width='%1' height='%1' src='%2'/>") | 60 | return QStringLiteral("<img width='%1' height='%1' src='%2'/>") | ||
61 | .arg(size) | 61 | .arg(size) | ||
62 | .arg(loader.iconPath(iconName, group)); | 62 | .arg(loader->iconPath(iconName, group)); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | ProblemNavigationContext::ProblemNavigationContext(const QVector<IProblem::Ptr>& problems, const Flags flags) | 67 | ProblemNavigationContext::ProblemNavigationContext(const QVector<IProblem::Ptr>& problems, const Flags flags) | ||
68 | : m_problems(problems) | 68 | : m_problems(problems) | ||
69 | , m_flags(flags) | 69 | , m_flags(flags) | ||
70 | , m_widget(nullptr) | 70 | , m_widget(nullptr) | ||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |