From 35fa30e65d26b9e4840cfa793ed8369b3475c1fd Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 23 Feb 2017 10:32:31 +0100 Subject: Revert "testlib: Add qWaitFor to wait for predicate" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3b38392844dd9e145a4783445fd3c96e84bb94d1. The change caused test compile failures with MSVC2015 in qqmlsettings; a variable was not captured in the lambda expression. This appears to be a compiler bug of MSVC. Task-number: QTBUG-59096 Change-Id: I3bf5288eb005b2e1661819bb33bc54fb944d0150 Reviewed-by: Liang Qi Reviewed-by: Jan Arve Sæther Reviewed-by: Simon Hausmann --- src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/testlib/doc/snippets/code') diff --git a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp index 990b7a38d7b..01ee8102f40 100644 --- a/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp +++ b/src/testlib/doc/snippets/code/src_qtestlib_qtestcase.cpp @@ -306,13 +306,5 @@ QTest::keyClick(myWindow, Qt::Key_Escape); QTest::keyClick(myWindow, Qt::Key_Escape, Qt::ShiftModifier, 200); //! [29] -//! [30] -MyObject obj; -obj.startup(); -QTest::qWaitFor([&]() { - return obj.isReady(); -}, 3000); -//! [30] - } -- cgit v1.2.3