ProjectExplorer: HighDPI off-by-one fix for issues pane item delegate

Change-Id: Id0177f01b06cdfcfdc500f181abb49b4be0e20c4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2016-08-11 18:17:37 +02:00
parent 8cc7e096d5
commit c2d1bcb210

View File

@@ -875,7 +875,8 @@ void TaskDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
// Separator lines
painter->setPen(QColor::fromRgb(150,150,150));
painter->drawLine(0, opt.rect.bottom(), opt.rect.right(), opt.rect.bottom());
const QRectF borderRect = QRectF(opt.rect).adjusted(0.5, 0.5, -0.5, -0.5);
painter->drawLine(borderRect.bottomLeft(), borderRect.bottomRight());
painter->restore();
}