From b50f191132580771b470d5804a0a6616fbc1873f Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 22 May 2009 15:30:52 +0200 Subject: Don't use the time() function; use QTime instead time() is not available on all platforms. --- examples/animation/moveblocks/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 #include -#include 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(); } -- cgit v0.12