From 9cd7d3ac1001fe5a31b4669120404604f568177f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com> Date: Mon, 4 May 2009 13:46:03 +0200 Subject: [PATCH] Fixed folding markers not showing up with the Mac style --- src/plugins/texteditor/basetexteditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index baf0b1f208b..c2457a3d9c8 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -2356,7 +2356,7 @@ void BaseTextEditor::extraAreaPaintEvent(QPaintEvent *e) if (drawBox) { bool expanded = nextBlock.isVisible(); - QRect box(extraAreaWidth + collapseBoxWidth/4 + 1, top + collapseBoxWidth/4, + QRect box(extraAreaWidth + collapseBoxWidth/4, top + collapseBoxWidth/4, 2 * (collapseBoxWidth/4) + 1, 2 * (collapseBoxWidth/4) + 1); drawFoldingMarker(&painter, box, expanded, active); } @@ -2406,7 +2406,7 @@ void BaseTextEditor::drawFoldingMarker(QPainter *painter, const QRect &rect, bool expanded, bool hovered) const { QStyleOptionViewItemV2 opt; - opt.rect = QRect(rect.center(), QSize()); + opt.rect = rect; opt.state = QStyle::State_Active | QStyle::State_Item | QStyle::State_Children; if (expanded) -- GitLab