Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM GrantleeTheme
Commits
5bc8e223
Commit
5bc8e223
authored
Dec 16, 2019
by
Volker Krause
Browse files
Port away from about to be deprecated IconSize() method
parent
8a5cf65a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugin/icon.cpp
View file @
5bc8e223
...
...
@@ -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
))
?
K
Icon
Loader
::
global
()
->
current
Size
(
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment