Commit 3cc33561 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Centered arrow offset on mac

parent 67466d0f
......@@ -2488,9 +2488,10 @@ void BaseTextEditor::drawFoldingMarker(QPainter *painter, const QPalette &pal,
s = ms->systemStyle();
// QGtkStyle needs a small correction to draw the marker in the right place
if (!qstrcmp(s->metaObject()->className(), "QGtkStyle") == 0 ||
!qstrcmp(s->metaObject()->className(), "QMacStyle") == 0)
if (qstrcmp(s->metaObject()->className(), "QGtkStyle") == 0)
opt.rect.translate(-2, 0);
else if (qstrcmp(s->metaObject()->className(), "QMacStyle") == 0)
opt.rect.translate(-1, 0);
s->drawPrimitive(QStyle::PE_IndicatorBranch, &opt, painter, this);
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