diff options
Diffstat (limited to 'examples/sensors')
-rw-r--r-- | examples/sensors/accelbubble/doc/images/accelbubble.png | bin | 5181 -> 5025 bytes | |||
-rw-r--r-- | examples/sensors/grue/doc/images/qtsensors-examples-grue.png | bin | 12278 -> 7511 bytes | |||
-rw-r--r-- | examples/sensors/grue/grue.png | bin | 11207 -> 9319 bytes | |||
-rw-r--r-- | examples/sensors/maze/components/images/button_background_pressed.png | bin | 334 -> 228 bytes | |||
-rw-r--r-- | examples/sensors/maze/content/00.png | bin | 186 -> 70 bytes | |||
-rw-r--r-- | examples/sensors/maze/content/01.png | bin | 708 -> 540 bytes | |||
-rw-r--r-- | examples/sensors/maze/content/cheese.png | bin | 317 -> 156 bytes | |||
-rw-r--r-- | examples/sensors/maze/content/start.png | bin | 677 -> 505 bytes | |||
-rw-r--r-- | examples/sensors/qmlqtsensors/components/images/button_background_pressed.png | bin | 334 -> 228 bytes | |||
-rw-r--r-- | examples/sensors/qmlqtsensors/qmlqtsensors.qml | 18 | ||||
-rw-r--r-- | examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.png | bin | 39873 -> 39820 bytes |
11 files changed, 9 insertions, 9 deletions
diff --git a/examples/sensors/accelbubble/doc/images/accelbubble.png b/examples/sensors/accelbubble/doc/images/accelbubble.png Binary files differindex 84e876d..ad4cfc0 100644 --- a/examples/sensors/accelbubble/doc/images/accelbubble.png +++ b/examples/sensors/accelbubble/doc/images/accelbubble.png diff --git a/examples/sensors/grue/doc/images/qtsensors-examples-grue.png b/examples/sensors/grue/doc/images/qtsensors-examples-grue.png Binary files differindex 81b3725..f434827 100644 --- a/examples/sensors/grue/doc/images/qtsensors-examples-grue.png +++ b/examples/sensors/grue/doc/images/qtsensors-examples-grue.png diff --git a/examples/sensors/grue/grue.png b/examples/sensors/grue/grue.png Binary files differindex f0b070b..2727d39 100644 --- a/examples/sensors/grue/grue.png +++ b/examples/sensors/grue/grue.png diff --git a/examples/sensors/maze/components/images/button_background_pressed.png b/examples/sensors/maze/components/images/button_background_pressed.png Binary files differindex 149529e..e0ba0e7 100644 --- a/examples/sensors/maze/components/images/button_background_pressed.png +++ b/examples/sensors/maze/components/images/button_background_pressed.png diff --git a/examples/sensors/maze/content/00.png b/examples/sensors/maze/content/00.png Binary files differindex ab29a62..2522be5 100644 --- a/examples/sensors/maze/content/00.png +++ b/examples/sensors/maze/content/00.png diff --git a/examples/sensors/maze/content/01.png b/examples/sensors/maze/content/01.png Binary files differindex 0e70d1b..6146b20 100644 --- a/examples/sensors/maze/content/01.png +++ b/examples/sensors/maze/content/01.png diff --git a/examples/sensors/maze/content/cheese.png b/examples/sensors/maze/content/cheese.png Binary files differindex ecef450..c737b9d 100644 --- a/examples/sensors/maze/content/cheese.png +++ b/examples/sensors/maze/content/cheese.png diff --git a/examples/sensors/maze/content/start.png b/examples/sensors/maze/content/start.png Binary files differindex 698c0b1..581b8c9 100644 --- a/examples/sensors/maze/content/start.png +++ b/examples/sensors/maze/content/start.png diff --git a/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png b/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png Binary files differindex 149529e..e0ba0e7 100644 --- a/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png +++ b/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.qml b/examples/sensors/qmlqtsensors/qmlqtsensors.qml index bc456be..40492c7 100644 --- a/examples/sensors/qmlqtsensors/qmlqtsensors.qml +++ b/examples/sensors/qmlqtsensors/qmlqtsensors.qml @@ -106,18 +106,18 @@ ApplicationWindow { active: false //! [5] onReadingChanged: { - if (reading.lightLevel == AmbientLightSensor.Unknown) - ambientlighttext.text = "Ambient light: Unknown"; - else if (reading.lightLevel == AmbientLightSensor.Dark) + if (reading.lightLevel == AmbientLightReading.Dark) ambientlighttext.text = "Ambient light: Dark"; - else if (reading.lightLevel == AmbientLightSensor.Twilight) + else if (reading.lightLevel == AmbientLightReading.Twilight) ambientlighttext.text = "Ambient light: Twilight"; - else if (reading.lightLevel == AmbientLightSensor.Light) + else if (reading.lightLevel == AmbientLightReading.Light) ambientlighttext.text = "Ambient light: Light"; - else if (reading.lightLevel == AmbientLightSensor.Bright) + else if (reading.lightLevel == AmbientLightReading.Bright) ambientlighttext.text = "Ambient light: Bright"; - else if (reading.lightLevel == AmbientLightSensor.Sunny) + else if (reading.lightLevel == AmbientLightReading.Sunny) ambientlighttext.text = "Ambient light: Sunny"; + else + ambientlighttext.text = "Ambient light: Unknown"; } //! [5] } @@ -160,7 +160,7 @@ ApplicationWindow { height: 30 verticalAlignment: Text.AlignVCenter //! [3] - text: "X Rotation: " + tilt.xRotation + "°" + text: "X Rotation: " + (tilt.reading ? tilt.reading.xRotation.toFixed(2) + "°" : "Unknown") //! [3] } } @@ -184,7 +184,7 @@ ApplicationWindow { height: 30 verticalAlignment: Text.AlignVCenter //! [4] - text: "Y Rotation: " + tilt.yRotation + "°" + text: "Y Rotation: " + (tilt.reading ? tilt.reading.yRotation.toFixed(2) + "°" : "Unknown") //! [4] } } diff --git a/examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.png b/examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.png Binary files differindex 0976b9f..888fc3c 100644 --- a/examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.png +++ b/examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.png |