summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-10-25 03:43:37 (GMT)
committerLars Knoll <lars.knoll@qt.io>2017-11-03 09:12:47 (GMT)
commitfc60f53817d3182c545cef15e3ab94a85ef01379 (patch)
treed35c5c4c7351a1cd9d09f2ea98bc48a89860868f
parent7f6543a06040f15f30337f71036a5e249c279ed8 (diff)
downloadqtsensors-fc60f53817d3182c545cef15e3ab94a85ef01379.tar.gz
Update to new QRandomGenerator APIv5.10.0-beta4
Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/plugins/sensors/dummy/dummylightsensor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sensors/dummy/dummylightsensor.cpp b/src/plugins/sensors/dummy/dummylightsensor.cpp
index 47a1e75..8f2a9b8 100644
--- a/src/plugins/sensors/dummy/dummylightsensor.cpp
+++ b/src/plugins/sensors/dummy/dummylightsensor.cpp
@@ -53,7 +53,7 @@ dummylightsensor::dummylightsensor(QSensor *sensor)
void dummylightsensor::poll()
{
m_reading.setTimestamp(getTimestamp());
- if (QRandomGenerator::bounded(100) == 0)
+ if (QRandomGenerator::global()->bounded(100) == 0)
m_reading.setLightLevel(QAmbientLightReading::Dark);
else
m_reading.setLightLevel(QAmbientLightReading::Light);