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
Marco Bubke
flatpak-qt-creator
Commits
6043c639
Commit
6043c639
authored
Nov 04, 2009
by
mae
Browse files
fix redrawing issue with horizontal scrolling and line wrapping column
revby: Oswald Buddenhagen
parent
205e0368
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
6043c639
...
...
@@ -1990,8 +1990,9 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
if
(
d
->
m_visibleWrapColumn
>
0
)
{
lineX
=
fontMetrics
().
averageCharWidth
()
*
d
->
m_visibleWrapColumn
+
offset
.
x
()
+
4
;
painter
.
fillRect
(
QRectF
(
lineX
,
0
,
viewportRect
.
width
()
-
lineX
,
viewportRect
.
height
()),
d
->
m_ifdefedOutFormat
.
background
());
if
(
lineX
<
viewportRect
.
width
())
painter
.
fillRect
(
QRectF
(
lineX
,
0
,
viewportRect
.
width
()
-
lineX
,
viewportRect
.
height
()),
d
->
m_ifdefedOutFormat
.
background
());
}
// // keep right margin clean from full-width selection
...
...
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