Fix tst_QListWidget::task217070_scrollbarsAdjusted()
QMacStyle::styleHint(SH_ScrollBar_Transient) wants either a style object or the widget argument in order to return correct values. Change-Id: I2fdef0820334fa66e076a4734eb2a30c722c841c Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
parent
08672adb97
commit
b2a6c9ec3e
@ -1575,7 +1575,7 @@ void tst_QListWidget::task217070_scrollbarsAdjusted()
|
||||
for(int f=150; f>90 ; f--) {
|
||||
v.resize(f,100);
|
||||
QTest::qWait(30);
|
||||
QVERIFY(vbar->style()->styleHint(QStyle::SH_ScrollBar_Transient) || vbar->isVisible());
|
||||
QVERIFY(vbar->style()->styleHint(QStyle::SH_ScrollBar_Transient, 0, vbar) || vbar->isVisible());
|
||||
//the horizontal scrollbar must not be visible.
|
||||
QVERIFY(!hbar->isVisible());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user