forked from qt-creator/qt-creator
Fix for block highlighting on the folding bar: cover the entire
paragraph, even when it has several lines.
This commit is contained in:
@@ -2440,7 +2440,7 @@ void BaseTextEditor::extraAreaPaintEvent(QPaintEvent *e)
|
||||
|
||||
int boxWidth = collapseBoxWidth(fm);
|
||||
if (hovered) {
|
||||
QRect box = QRect(extraAreaWidth + 1, top, boxWidth - 2, fmLineSpacing + 2);
|
||||
QRect box = QRect(extraAreaWidth + 1, top, boxWidth - 2, bottom - top);
|
||||
drawRectBox(&painter, box, drawStart, drawEnd, pal);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user