diff options
author | Liang Qi <liang.qi@qt.io> | 2017-11-20 13:16:41 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-11-20 13:16:41 +0100 |
commit | 7722638fcd57f2e826bac61c3bf9ab2a7e190088 (patch) | |
tree | 54a569112ceec8355a53e25202fc60c5397f6a42 /examples/datavisualization/qmloscilloscope/datasource.cpp | |
parent | 3a965b26e38d551cac80a0e9ba1ffb4bf082a6df (diff) | |
parent | 966bdad4d56ebb06e94aa8f33cb70f15ec288976 (diff) |
Merge remote-tracking branch 'origin/5.10' into dev
Change-Id: Iea700ac85da7205933622b61e1c43f774c82e45a
Diffstat (limited to 'examples/datavisualization/qmloscilloscope/datasource.cpp')
-rw-r--r-- | examples/datavisualization/qmloscilloscope/datasource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/datavisualization/qmloscilloscope/datasource.cpp b/examples/datavisualization/qmloscilloscope/datasource.cpp index cb82c672..843eb3d6 100644 --- a/examples/datavisualization/qmloscilloscope/datasource.cpp +++ b/examples/datavisualization/qmloscilloscope/datasource.cpp @@ -96,7 +96,7 @@ void DataSource::generateData(int cacheCount, int rowCount, int columnCount, float colWave = float(qSin((2.0 * M_PI * colMod) - (1.0 / 2.0 * M_PI)) + 1.0); float y = (colWave * ((float(qSin(rowColWaveAngleMul * colMod) + 1.0)))) * rowColWaveMul - + QRandomGenerator::bounded(0.15f) * yRangeMod; + + QRandomGenerator::global()->bounded(0.15f) * yRangeMod; int index = k + cacheIndexAdjustment; if (index >= columnCount) { |