Commit 5bc8e223 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from about to be deprecated IconSize() method

parent 8a5cf65a
......@@ -138,7 +138,7 @@ void IconNode::render(Grantlee::OutputStream *stream, Grantlee::Context *c) cons
const QString html = QStringLiteral("<img src=\"file://%1\" align=\"top\" height=\"%2\" width=\"%2\" alt=\"%3\" title=\"%4\" />")
.arg(KIconLoader::global()->iconPath(iconName, mSizeOrGroup < KIconLoader::LastGroup ? mSizeOrGroup : -mSizeOrGroup))
.arg(mSizeOrGroup < KIconLoader::LastGroup
? IconSize(static_cast<KIconLoader::Group>(mSizeOrGroup))
? KIconLoader::global()->currentSize(static_cast<KIconLoader::Group>(mSizeOrGroup))
: mSizeOrGroup)
.arg(altText.isEmpty() ? iconName : altText, altText); // title is intentionally blank if no alt is provided
(*stream) << Grantlee::SafeString(html, Grantlee::SafeString::IsSafe);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment