diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-10-15 17:50:57 +0200 |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-10-15 17:59:56 +0200 |
commit | 563b9362dbdedadb773ae45d6fa672f2c75463d9 (patch) | |
tree | 28c26d8f63eeef1a7e04b65a7e9b118e2a0836be /demos/sub-attaq | |
parent | 739a36b3e86d6c112bc1720ec92a61433c48ee80 (diff) | |
download | qt4-tools-563b9362dbdedadb773ae45d6fa672f2c75463d9.tar.gz |
Sub-attaq : Don't let user move the boat with the mouse.
Reviewed-by:TrustMe
Diffstat (limited to 'demos/sub-attaq')
-rw-r--r-- | demos/sub-attaq/boat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sub-attaq/boat.cpp b/demos/sub-attaq/boat.cpp index 3b1bac7620..cb40329788 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"); |