summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-10 14:58:17 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-10 14:58:17 (GMT)
commitc3d2c4a7d103ec1289c27425f49f8565a7f4413c (patch)
treeab77725bf74da5632bc5e9f7492a12759c1dfeaa /examples
parent0141b9b410278e064f3455d20cb21a50c926a2c8 (diff)
parent32f32ee3e752a6cc03505ddaa48d2849eaedc2a6 (diff)
downloadQt-c3d2c4a7d103ec1289c27425f49f8565a7f4413c.zip
Qt-c3d2c4a7d103ec1289c27425f49f8565a7f4413c.tar.gz
Qt-c3d2c4a7d103ec1289c27425f49f8565a7f4413c.tar.bz2
Merge commit 'qt/master' into kinetic-declarativeui
Conflicts: src/corelib/kernel/qabstractitemmodel.cpp src/corelib/kernel/qobject.cpp tools/qdoc3/htmlgenerator.cpp
Diffstat (limited to 'examples')
-rw-r--r--examples/graphicsview/elasticnodes/node.cpp1
-rw-r--r--examples/statemachine/tankgameplugins/random_ai/random_ai_plugin.cpp5
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/graphicsview/elasticnodes/node.cpp b/examples/graphicsview/elasticnodes/node.cpp
index 6942fa0..53fe994 100644
--- a/examples/graphicsview/elasticnodes/node.cpp
+++ b/examples/graphicsview/elasticnodes/node.cpp
@@ -52,6 +52,7 @@ Node::Node(GraphWidget *graphWidget)
: graph(graphWidget)
{
setFlag(ItemIsMovable);
+ setFlag(ItemSendsGeometryChanges);
setCacheMode(DeviceCoordinateCache);
setZValue(1);
}
diff --git a/examples/statemachine/tankgameplugins/random_ai/random_ai_plugin.cpp b/examples/statemachine/tankgameplugins/random_ai/random_ai_plugin.cpp
index d360de9..2368608 100644
--- a/examples/statemachine/tankgameplugins/random_ai/random_ai_plugin.cpp
+++ b/examples/statemachine/tankgameplugins/random_ai/random_ai_plugin.cpp
@@ -42,13 +42,12 @@
#include "random_ai_plugin.h"
#include <QState>
+#include <QTime>
#include <QtPlugin>
-#include <time.h>
-
QState *RandomAiPlugin::create(QState *parentState, QObject *tank)
{
- qsrand(uint(time(NULL)));
+ qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
QState *topLevel = new QState(parentState);