diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-09-21 12:21:34 -0700 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 09:13:37 +0000 |
commit | 567b5bc67e54f496027da2e6d99aa7b39d64a606 (patch) | |
tree | 9bdb47dfba0e69e4d31c27e40bd4b25eefb624b2 /examples/charts/qmloscilloscope/datasource.cpp | |
parent | dad8cdbac13eaf3ed33fdf4157ebc242d5c13db5 (diff) |
Update to new QRandomGenerator API
Change-Id: I69f37f9304f24709a823fffd14e676c097712329
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/qmloscilloscope/datasource.cpp')
-rw-r--r-- | examples/charts/qmloscilloscope/datasource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/qmloscilloscope/datasource.cpp b/examples/charts/qmloscilloscope/datasource.cpp index dddee543..b773217b 100644 --- a/examples/charts/qmloscilloscope/datasource.cpp +++ b/examples/charts/qmloscilloscope/datasource.cpp @@ -81,7 +81,7 @@ void DataSource::generateData(int type, int rowCount, int colCount) switch (type) { case 0: // data with sin + random component - y = qSin(M_PI / 50 * j) + 0.5 + QRandomGenerator::getReal(); + y = qSin(M_PI / 50 * j) + 0.5 + QRandomGenerator::global()->generateDouble(); x = j; break; case 1: |