summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-10-14 04:04:47 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-10-14 04:04:47 (GMT)
commit235d1d687dcc2d21860cd753c9d67964c5270be2 (patch)
tree0bb5c841bc8ce024c4b6a08baa7d20437548b2ff /demos
parent28ef9731df2b3cd865af89cc474c5fa20c24e492 (diff)
parent6fb13041677f00884746e7bc36e2c73f3fc5c991 (diff)
downloadQt-235d1d687dcc2d21860cd753c9d67964c5270be2.zip
Qt-235d1d687dcc2d21860cd753c9d67964c5270be2.tar.gz
Qt-235d1d687dcc2d21860cd753c9d67964c5270be2.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: TextInput autoscroll now scrolls when the cursor moves Fix samegame tutorial js Make minehunt less cheerful Add new behavior example.
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/minehunt/minehunt.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/declarative/minehunt/minehunt.cpp b/demos/declarative/minehunt/minehunt.cpp
index 9c82f30..709d945 100644
--- a/demos/declarative/minehunt/minehunt.cpp
+++ b/demos/declarative/minehunt/minehunt.cpp
@@ -195,6 +195,7 @@ bool MinehuntGame::flip(int row, int col)
won = false;
hasWonChanged();
setPlaying(false);
+ return true;
}
remaining--;
@@ -202,6 +203,7 @@ bool MinehuntGame::flip(int row, int col)
won = true;
hasWonChanged();
setPlaying(false);
+ return true;
}
return true;
}
@@ -209,7 +211,7 @@ bool MinehuntGame::flip(int row, int col)
bool MinehuntGame::flag(int row, int col)
{
TileData *t = tile(row, col);
- if(!t)
+ if(!t || !playing)
return false;
t->setHasFlag(!t->hasFlag());