summaryrefslogtreecommitdiff
path: root/examples/sensors
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors')
-rw-r--r--examples/sensors/accelbubble/doc/images/accelbubble.pngbin5181 -> 5025 bytes
-rw-r--r--examples/sensors/grue/doc/images/qtsensors-examples-grue.pngbin12278 -> 7511 bytes
-rw-r--r--examples/sensors/grue/grue.pngbin11207 -> 9319 bytes
-rw-r--r--examples/sensors/maze/components/images/button_background_pressed.pngbin334 -> 228 bytes
-rw-r--r--examples/sensors/maze/content/00.pngbin186 -> 70 bytes
-rw-r--r--examples/sensors/maze/content/01.pngbin708 -> 540 bytes
-rw-r--r--examples/sensors/maze/content/cheese.pngbin317 -> 156 bytes
-rw-r--r--examples/sensors/maze/content/start.pngbin677 -> 505 bytes
-rw-r--r--examples/sensors/qmlqtsensors/components/images/button_background_pressed.pngbin334 -> 228 bytes
-rw-r--r--examples/sensors/qmlqtsensors/qmlqtsensors.qml18
-rw-r--r--examples/sensors/sensor_explorer/doc/images/qtsensors-examples-explorer.pngbin39873 -> 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
index 84e876d..ad4cfc0 100644
--- a/examples/sensors/accelbubble/doc/images/accelbubble.png
+++ b/examples/sensors/accelbubble/doc/images/accelbubble.png
Binary files differ
diff --git a/examples/sensors/grue/doc/images/qtsensors-examples-grue.png b/examples/sensors/grue/doc/images/qtsensors-examples-grue.png
index 81b3725..f434827 100644
--- a/examples/sensors/grue/doc/images/qtsensors-examples-grue.png
+++ b/examples/sensors/grue/doc/images/qtsensors-examples-grue.png
Binary files differ
diff --git a/examples/sensors/grue/grue.png b/examples/sensors/grue/grue.png
index f0b070b..2727d39 100644
--- a/examples/sensors/grue/grue.png
+++ b/examples/sensors/grue/grue.png
Binary files differ
diff --git a/examples/sensors/maze/components/images/button_background_pressed.png b/examples/sensors/maze/components/images/button_background_pressed.png
index 149529e..e0ba0e7 100644
--- a/examples/sensors/maze/components/images/button_background_pressed.png
+++ b/examples/sensors/maze/components/images/button_background_pressed.png
Binary files differ
diff --git a/examples/sensors/maze/content/00.png b/examples/sensors/maze/content/00.png
index ab29a62..2522be5 100644
--- a/examples/sensors/maze/content/00.png
+++ b/examples/sensors/maze/content/00.png
Binary files differ
diff --git a/examples/sensors/maze/content/01.png b/examples/sensors/maze/content/01.png
index 0e70d1b..6146b20 100644
--- a/examples/sensors/maze/content/01.png
+++ b/examples/sensors/maze/content/01.png
Binary files differ
diff --git a/examples/sensors/maze/content/cheese.png b/examples/sensors/maze/content/cheese.png
index ecef450..c737b9d 100644
--- a/examples/sensors/maze/content/cheese.png
+++ b/examples/sensors/maze/content/cheese.png
Binary files differ
diff --git a/examples/sensors/maze/content/start.png b/examples/sensors/maze/content/start.png
index 698c0b1..581b8c9 100644
--- a/examples/sensors/maze/content/start.png
+++ b/examples/sensors/maze/content/start.png
Binary files differ
diff --git a/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png b/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png
index 149529e..e0ba0e7 100644
--- a/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png
+++ b/examples/sensors/qmlqtsensors/components/images/button_background_pressed.png
Binary files differ
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
index 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
Binary files differ