diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2011-12-15 14:11:46 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-20 04:38:54 +0100 |
commit | 52a414bd2291dbf9b99606019ab50a914280ecb0 (patch) | |
tree | e9c25309ea7aa6c121b688459ab491436406e9e8 /examples/sensors/grue/lib/gruesensor.cpp | |
parent | 72a3d3b60b20abbc7e6af2ec1e33275bfa7841b1 (diff) |
Grue example doesn't work in simulator
Change-Id: I486e24befd3f31345ec7f8dffd9a183f9f2ec4cb
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'examples/sensors/grue/lib/gruesensor.cpp')
-rw-r--r-- | examples/sensors/grue/lib/gruesensor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/sensors/grue/lib/gruesensor.cpp b/examples/sensors/grue/lib/gruesensor.cpp index 549eb98b..12be6502 100644 --- a/examples/sensors/grue/lib/gruesensor.cpp +++ b/examples/sensors/grue/lib/gruesensor.cpp @@ -59,19 +59,19 @@ IMPLEMENT_READING(GrueSensorReading) \property GrueSensorReading::chanceOfBeingEaten \brief holds your chance of being eaten. - The value is the probability (from 0 to 1) that a Grue will eat you. - A probability of 1 means you are currently being eaten. The darker + The value is the probability (from 0 to 100) that a Grue will eat you. + A probability of 100 means you are currently being eaten. The darker it is, the more likely you are to be eaten by a Grue. The longer you stay in a dark area, the more likely you are to be eaten by a Grue. If you are in a lit room, the probability will be 0 as Grues fear light. */ -qreal GrueSensorReading::chanceOfBeingEaten() const +int GrueSensorReading::chanceOfBeingEaten() const { return d->chanceOfBeingEaten; } -void GrueSensorReading::setChanceOfBeingEaten(qreal chanceOfBeingEaten) +void GrueSensorReading::setChanceOfBeingEaten(int chanceOfBeingEaten) { d->chanceOfBeingEaten = chanceOfBeingEaten; } |