summaryrefslogtreecommitdiffstats
path: root/tests/auto/pdf
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2019-08-21 20:18:45 +0200
committerMichal Klocek <michal.klocek@qt.io>2019-11-25 13:00:56 +0100
commite3802e913e1d6a3694d0084a35516145e2be32df (patch)
treefa6dcf54a31ad188b77fd222d3de5cef060b7fcb /tests/auto/pdf
parent80ed20b8603dedb1aa967e149e7876baad6e6102 (diff)
tst_qpdfdocument: use QElapsedTimer instead of QTime
Change-Id: Ifdac9ae6b216605166cefc9dbab60f5ab4b1dcbf Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'tests/auto/pdf')
-rw-r--r--tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
index b6a00e00c..29b85fc89 100644
--- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
+++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp
@@ -316,13 +316,12 @@ void tst_QPdfDocument::status()
doc.load(reply.data());
- QTime stopWatch;
+ QElapsedTimer stopWatch;
stopWatch.start();
forever {
QCoreApplication::instance()->processEvents();
if (statusChangedSpy.count() == 2)
break;
-
if (stopWatch.elapsed() >= 30000)
break;
}