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 Messagelib
Commits
d82046d7
Commit
d82046d7
authored
May 23, 2016
by
Laurent Montel
😁
Browse files
Avoid big icon when we use svg icons
parent
9c0a5112
Changes
1
Hide whitespace changes
Inline
Side-by-side
mimetreeparser/src/viewer/messagepart.cpp
View file @
d82046d7
...
...
@@ -753,7 +753,7 @@ void TextMessagePart::writePartIcon()
//iconName = nodeHelper->iconName( mNode );
}
const
int
iconSize
=
KIconLoader
::
global
()
->
currentSize
(
KIconLoader
::
Desktop
);
static
const
int
iconSize
=
KIconLoader
::
global
()
->
currentSize
(
KIconLoader
::
Desktop
);
writer
->
queue
(
QStringLiteral
(
"<hr/><div><a href=
\"
%1
\"
>"
).
arg
(
href
)
+
QStringLiteral
(
"<img align=
\"
center
\"
height=
\"
%1
\"
width=
\"
%1
\"
src=
\"
%2
\"
border=
\"
0
\"
style=
\"
max-width: 100%
\"
alt=
\"\"
/>"
).
arg
(
QString
::
number
(
iconSize
),
iconName
)
+
label
+
QStringLiteral
(
"</a></div>"
)
+
...
...
@@ -1614,13 +1614,14 @@ void CryptoMessagePart::writeDeferredDecryptionBlock() const
}
const
QString
iconName
=
QUrl
::
fromLocalFile
(
IconNameCache
::
instance
()
->
iconPath
(
QStringLiteral
(
"document-decrypt"
),
KIconLoader
::
Small
)).
url
();
static
const
int
iconSize
=
KIconLoader
::
global
()
->
currentSize
(
KIconLoader
::
Desktop
);
writer
->
queue
(
QLatin1String
(
"<div style=
\"
font-size:large; text-align:center;"
"padding-top:20pt;
\"
>"
)
+
i18n
(
"This message is encrypted."
)
+
Q
Latin1
String
(
"</div>"
+
QString
::
fromLatin1
(
"</div>"
"<div style=
\"
text-align:center; padding-bottom:20pt;
\"
>"
"<a href=
\"
kmail:decryptMessage
\"
>"
"<img
src=
\"
"
)
+
iconName
+
QLatin1String
(
"
\"
/>"
)
"<img
height=
\"
%1
\"
width=
\"
%1
\"
src=
\"
"
).
arg
(
iconSize
)
+
iconName
+
QLatin1String
(
"
\"
/>"
)
+
i18n
(
"Decrypt Message"
)
+
QLatin1String
(
"</a></div>"
));
}
...
...
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