diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-02-19 09:15:44 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-17 10:54:18 (GMT) |
commit | e0f654ceb4a46ed60351743090dbc13ea8b92106 (patch) | |
tree | 879d9b5e190551c09a403199559476a6a41a44b2 /src | |
parent | 0e0ac26bc58626df780e0fc3bc0483d5b310db8b (diff) | |
download | Qt-e0f654ceb4a46ed60351743090dbc13ea8b92106.zip Qt-e0f654ceb4a46ed60351743090dbc13ea8b92106.tar.gz Qt-e0f654ceb4a46ed60351743090dbc13ea8b92106.tar.bz2 |
Port QTest::qWait also to use QTimestamp.
To avoid using QTimestamp to test QTimestamp, use QTest::qSleep in
QTimestamp's own testcase.
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestsystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index 3c11cdd..54da114 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -44,7 +44,7 @@ #include <QtTest/qtestcase.h> #include <QtCore/qcoreapplication.h> -#include <QtCore/qdatetime.h> +#include <QtCore/qtimestamp.h> QT_BEGIN_HEADER @@ -63,7 +63,7 @@ namespace QTest { Q_ASSERT(QCoreApplication::instance()); - QTime timer; + QTimestamp timer; timer.start(); do { QCoreApplication::processEvents(QEventLoop::AllEvents, ms); |