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
7b358356
Commit
7b358356
authored
Feb 26, 2021
by
Christoph Cullmann
🐮
Browse files
fixup rendering
parent
5caa244a
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/kateoutputview.cpp
View file @
7b358356
...
...
@@ -34,6 +34,9 @@ static void setupText(QTextDocument &doc, const QModelIndex &index)
void
KateOutputMessageStyledDelegate
::
paint
(
QPainter
*
painter
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
{
// ensure we recover state
painter
->
save
();
QStyleOptionViewItem
options
=
option
;
initStyleOption
(
&
options
,
index
);
...
...
@@ -52,6 +55,9 @@ void KateOutputMessageStyledDelegate::paint(QPainter *painter, const QStyleOptio
QTextDocument
doc
;
setupText
(
doc
,
index
);
doc
.
drawContents
(
painter
);
// ensure we recover state
painter
->
restore
();
}
QSize
KateOutputMessageStyledDelegate
::
sizeHint
(
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
index
)
const
...
...
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