summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-10-15 15:50:57 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-15 15:59:56 (GMT)
commit563b9362dbdedadb773ae45d6fa672f2c75463d9 (patch)
tree28c26d8f63eeef1a7e04b65a7e9b118e2a0836be /demos
parent739a36b3e86d6c112bc1720ec92a61433c48ee80 (diff)
downloadQt-563b9362dbdedadb773ae45d6fa672f2c75463d9.zip
Qt-563b9362dbdedadb773ae45d6fa672f2c75463d9.tar.gz
Qt-563b9362dbdedadb773ae45d6fa672f2c75463d9.tar.bz2
Sub-attaq : Don't let user move the boat with the mouse.
Reviewed-by:TrustMe
Diffstat (limited to 'demos')
-rw-r--r--demos/sub-attaq/boat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sub-attaq/boat.cpp b/demos/sub-attaq/boat.cpp
index 3b1bac7..cb40329 100644
--- a/demos/sub-attaq/boat.cpp
+++ b/demos/sub-attaq/boat.cpp
@@ -87,7 +87,7 @@ Boat::Boat() : PixmapItem(QString("boat"), GraphicsScene::Big),
speed(0), bombsAlreadyLaunched(0), direction(Boat::None), movementAnimation(0)
{
setZValue(4);
- setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsFocusable);
+ setFlags(QGraphicsItem::ItemIsFocusable);
//The movement animation used to animate the boat
movementAnimation = new QPropertyAnimation(this, "pos");