QFusionStyle: adjust painting of separator in QSpinBox
When use a very high devicePixelRatio (for testing I used 5.23) one could see that the separator in the QSpinBox was not long enough. Pick-to: 6.5 Change-Id: I3a86c5bb695c95051b8b9294ca8a2749a8c3f9eb Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
This commit is contained in:
parent
3b234eefef
commit
e9512c46da
@ -2044,9 +2044,9 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
|
||||
// and a tiny rect painted in the corner.
|
||||
cachePainter.setPen(outline);
|
||||
if (spinBox->direction == Qt::RightToLeft)
|
||||
cachePainter.drawLine(upRect.right(), upRect.top() - 1, upRect.right(), downRect.bottom() + 1);
|
||||
cachePainter.drawLine(QLineF(upRect.right(), upRect.top() - 0.5, upRect.right(), downRect.bottom() + 1.5));
|
||||
else
|
||||
cachePainter.drawLine(upRect.left(), upRect.top() - 1, upRect.left(), downRect.bottom() + 1);
|
||||
cachePainter.drawLine(QLineF(upRect.left(), upRect.top() - 0.5, upRect.left(), downRect.bottom() + 1.5));
|
||||
}
|
||||
|
||||
if (upIsActive && sunken) {
|
||||
|
Loading…
Reference in New Issue
Block a user