Fix wrong C-style cast, use correct QTest::keyClick overload
Change-Id: Ic1e170a5f63da76067a48c3775c47e202948b616 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
c3b01fe6a0
commit
ab43506910
@ -652,7 +652,7 @@ void tst_QFileDialog2::task226366_lowerCaseHardDriveWindows()
|
||||
//i clear my previous selection in the completer
|
||||
QTest::keyClick(edit->completer()->popup(), Qt::Key_Down);
|
||||
edit->clear();
|
||||
QTest::keyClick(edit, (char)(Qt::Key_C | Qt::SHIFT));
|
||||
QTest::keyClick(edit, Qt::Key_C, Qt::ShiftModifier);
|
||||
QTest::qWait(200);
|
||||
QTest::keyClick(edit->completer()->popup(), Qt::Key_Down);
|
||||
QCOMPARE(edit->text(), QString("C:/"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user