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
Utilities
Kate
Commits
3a5db447
Commit
3a5db447
authored
Feb 27, 2021
by
Christoph Cullmann
🐮
Browse files
ensure always some icons is around for proper alignments
parent
244b2511
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/kateoutputview.cpp
View file @
3a5db447
...
...
@@ -203,7 +203,9 @@ void KateOutputView::slotMessage(const QVariantMap &message)
auto
categoryColumn
=
new
QStandardItem
();
categoryColumn
->
setText
(
message
.
value
(
QStringLiteral
(
"category"
)).
toString
().
trimmed
());
const
auto
categoryIcon
=
message
.
value
(
QStringLiteral
(
"categoryIcon"
)).
value
<
QIcon
>
();
if
(
!
categoryIcon
.
isNull
())
{
if
(
categoryIcon
.
isNull
())
{
categoryColumn
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"dialog-scripts"
)));
}
else
{
categoryColumn
->
setIcon
(
categoryIcon
);
}
...
...
@@ -228,6 +230,7 @@ void KateOutputView::slotMessage(const QVariantMap &message)
}
else
{
shouldShowOutputToolView
=
(
m_showOutputViewForMessageType
>=
4
);
typeColumn
->
setText
(
i18nc
(
"@info"
,
"Log"
));
typeColumn
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"dialog-messages"
)));
}
/**
...
...
Write
Preview
Supports
Markdown
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