Commit c0b02c61 authored by Francois Ferrand's avatar Francois Ferrand Committed by Tobias Hunger
Browse files

Fix margin drawing when disabled code has a 'transparent' background


(default).

Merge-request: 201
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 893f5bfd
......@@ -2364,7 +2364,8 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
const QColor col = (palette().base().color().value() > 128) ? Qt::black : Qt::white;
const QPen pen = painter.pen();
painter.setPen(blendColors(background.color(), col, 32));
painter.setPen(blendColors(background.isOpaque() ? background.color() : palette().base().color(),
col, 32));
painter.drawLine(QPointF(lineX, er.top()), QPointF(lineX, er.bottom()));
painter.setPen(pen);
}
......
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