Commit 405a1629 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer Committed by Alessandro Portale
Browse files

Extend the editor sidebar background to the folding markers

Previously, there was a gab between the text and the sidebar which
contained the folding markers. This is disturbing for some users.

Change-Id: Ib3c90d9cb01de533d16049bc1a0f5f10f1f7847a
Task-number: QTCREATORBUG-2915
Reviewed-on: http://codereview.qt.nokia.com/355

Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent 92b17264
......@@ -3633,9 +3633,7 @@ void BaseTextEditorWidget::extraAreaPaintEvent(QPaintEvent *e)
const int collapseColumnWidth = d->m_codeFoldingVisible ? foldBoxWidth(fm): 0;
const int extraAreaWidth = d->m_extraArea->width() - collapseColumnWidth;
painter.fillRect(e->rect(), pal.color(QPalette::Base));
painter.fillRect(e->rect().intersected(QRect(0, 0, extraAreaWidth, INT_MAX)),
pal.color(QPalette::Background));
painter.fillRect(e->rect(), pal.color(QPalette::Background));
QTextBlock block = firstVisibleBlock();
int blockNumber = block.blockNumber();
......
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