Commit 9ec55210 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Set the brush origin in the BaseTextEditor for the WaveUnderlines

This is necessary since a recent change in Qt 4.6 to how the
WaveUnderline is drawn. It makes sure the WaveUnderline repeats
correctly from one text item to another.

Reviewed-by: mae
parent b02d705a
......@@ -1995,6 +1995,9 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
d->m_ifdefedOutFormat.background());
}
// Set a brush origin so that the WaveUnderline knows where the wave started
painter.setBrushOrigin(offset);
// // keep right margin clean from full-width selection
// int maxX = offset.x() + qMax((qreal)viewportRect.width(), documentLayout->documentSize().width())
// - doc->documentMargin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment