Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
56164272
Commit
56164272
authored
Nov 10, 2022
by
Waqar Ahmed
Browse files
Output: Fix icon alignment
(cherry picked from commit
7c362358
)
parent
cb96fa64
Pipeline
#265785
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateoutputview.cpp
View file @
56164272
...
...
@@ -327,10 +327,10 @@ void KateOutputView::slotMessage(const QVariantMap &message)
const
QString
category
=
message
.
value
(
QStringLiteral
(
"category"
)).
toString
().
trimmed
();
const
auto
categoryIcon
=
message
.
value
(
QStringLiteral
(
"categoryIcon"
)).
value
<
QIcon
>
();
if
(
categoryIcon
.
isNull
())
{
meta
+=
QStringLiteral
(
" <img src=
\"
"
)
+
QStringLiteral
(
"dialog-scripts"
)
+
QStringLiteral
(
"
\"
/> "
);
meta
+=
QStringLiteral
(
" <img
style=
\"
vertical-align:middle
\"
src=
\"
"
)
+
QStringLiteral
(
"dialog-scripts"
)
+
QStringLiteral
(
"
\"
/> "
);
}
else
{
m_textEdit
->
addIcon
(
category
,
categoryIcon
);
meta
+=
QStringLiteral
(
" <img src=
\"
"
)
+
category
+
QStringLiteral
(
"
\"
/> "
);
meta
+=
QStringLiteral
(
" <img
style=
\"
vertical-align:middle
\"
src=
\"
"
)
+
category
+
QStringLiteral
(
"
\"
/> "
);
}
meta
+=
QStringLiteral
(
"<span style=
\"
color:%1
\"
>"
).
arg
(
m_keywordColor
)
+
category
+
QStringLiteral
(
"</span> "
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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