diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-05-22 13:30:52 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-05-22 13:30:52 (GMT) |
commit | b50f191132580771b470d5804a0a6616fbc1873f (patch) | |
tree | 3936db7e55f7e3018f3b36b43018bf5155b3caa3 /examples/animation/moveblocks | |
parent | fbab99479f83c4e51e4a28fd088a5f12f19dbf15 (diff) | |
download | Qt-b50f191132580771b470d5804a0a6616fbc1873f.zip Qt-b50f191132580771b470d5804a0a6616fbc1873f.tar.gz Qt-b50f191132580771b470d5804a0a6616fbc1873f.tar.bz2 |
Don't use the time() function; use QTime instead
time() is not available on all platforms.
Diffstat (limited to 'examples/animation/moveblocks')
-rw-r--r-- | examples/animation/moveblocks/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/animation/moveblocks/main.cpp b/examples/animation/moveblocks/main.cpp index b00485e..d315112 100644 --- a/examples/animation/moveblocks/main.cpp +++ b/examples/animation/moveblocks/main.cpp @@ -41,7 +41,6 @@ #include <QtCore> #include <QtGui> -#include <time.h> class StateSwitchEvent: public QEvent { @@ -288,7 +287,7 @@ int main(int argc, char **argv) window.resize(300, 300); window.show(); - qsrand(time(0)); + qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); return app.exec(); } |