Merge "macOS: Don't draw scrollbar handle when there is no range"

bb10
Andy Shaw 2021-03-10 12:22:32 +01:00 committed by Qt CI Bot
commit 4c6949d655
1 changed files with 1 additions and 1 deletions

View File

@ -5181,7 +5181,7 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex
if (const QStyleOptionSlider *sb = qstyleoption_cast<const QStyleOptionSlider *>(opt)) {
const bool drawTrack = sb->subControls & SC_ScrollBarGroove;
const bool drawKnob = sb->subControls & SC_ScrollBarSlider;
const bool drawKnob = sb->subControls & SC_ScrollBarSlider && sb->minimum != sb->maximum;
if (!drawTrack && !drawKnob)
break;