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:
J-P Nurmi 2012-12-17 18:04:40 +01:00 committed by The Qt Project
parent 71fdc0d8a6
commit 9f962612da

View File

@ -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;
}