summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-22 15:30:52 +0200
committerKent Hansen <khansen@trolltech.com>2009-05-22 15:30:52 +0200
commitb50f191132580771b470d5804a0a6616fbc1873f (patch)
tree3936db7e55f7e3018f3b36b43018bf5155b3caa3 /examples/animation
parentfbab99479f83c4e51e4a28fd088a5f12f19dbf15 (diff)
Don't use the time() function; use QTime instead
time() is not available on all platforms.
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/moveblocks/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/animation/moveblocks/main.cpp b/examples/animation/moveblocks/main.cpp
index b00485e23a..d31511271b 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();
}