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. Change-Id: I3a86c5bb695c95051b8b9294ca8a2749a8c3f9eb Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit e9512c46da50e374c960135f1804cb3f234d923f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
784add8a64
commit
d0b4ee0707
@ -2044,9 +2044,9 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
|
|||||||
// and a tiny rect painted in the corner.
|
// and a tiny rect painted in the corner.
|
||||||
cachePainter.setPen(outline);
|
cachePainter.setPen(outline);
|
||||||
if (spinBox->direction == Qt::RightToLeft)
|
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
|
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) {
|
if (upIsActive && sunken) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user