QWindows11Style: Reduce groove size of QSlider
Reduce the groove size of QSlider when using Windows11Style, so that the minimum selectable value does appear so. Fixes: QTBUG-133128 Pick-to: 6.8 Change-Id: I3e5a5378e2eace3920c06db8cb1198122c0937b5 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit dee731ae981eb4f41f4b00be80f75c7a0a5c0e11) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
3d4501bea7
commit
6a6a1c0fe2
@ -317,11 +317,11 @@ void QWindows11Style::drawComplexControl(ComplexControl control, const QStyleOpt
|
||||
|
||||
if (slider->orientation == Qt::Horizontal) {
|
||||
rect = QRect(slrect.left(), rect.center().y() - 2, slrect.width() - 5, 4);
|
||||
leftRect = QRect(rect.left(), rect.top(), (handlePos.x() - rect.left()), rect.height());
|
||||
leftRect = QRect(rect.left() + 1, rect.top(), (handlePos.x() - rect.left()), rect.height());
|
||||
rightRect = QRect(handlePos.x(), rect.top(), (rect.width() - handlePos.x()), rect.height());
|
||||
} else {
|
||||
rect = QRect(rect.center().x() - 2, slrect.top(), 4, slrect.height() - 5);
|
||||
rightRect = QRect(rect.left(), rect.top(), rect.width(), (handlePos.y() - rect.top()));
|
||||
rightRect = QRect(rect.left(), rect.top() + 1, rect.width(), (handlePos.y() - rect.top()));
|
||||
leftRect = QRect(rect.left(), handlePos.y(), rect.width(), (rect.height() - handlePos.y()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user