Mac: fix transient QScrollBar flashing
Task-number: QTBUG-28669 Change-Id: I9825584f15c34709f7897533220911b6bf3ea21d Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
71fdc0d8a6
commit
9f962612da
@ -325,7 +325,7 @@ void QScrollBar::initStyleOption(QStyleOptionSlider *option) const
|
||||
option->upsideDown = d->invertedAppearance;
|
||||
if (d->orientation == Qt::Horizontal)
|
||||
option->state |= QStyle::State_Horizontal;
|
||||
if ((d->flashed || !d->transient) && style()->styleHint(QStyle::SH_ScrollBar_Transient))
|
||||
if ((d->flashed || !d->transient) && style()->styleHint(QStyle::SH_ScrollBar_Transient, 0, this))
|
||||
option->state |= QStyle::State_On;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user