summaryrefslogtreecommitdiffstats
path: root/examples/charts/barmodelmapper/customtablemodel.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-09-21 12:21:34 -0700
committerLars Knoll <lars.knoll@qt.io>2017-11-03 09:13:37 +0000
commit567b5bc67e54f496027da2e6d99aa7b39d64a606 (patch)
tree9bdb47dfba0e69e4d31c27e40bd4b25eefb624b2 /examples/charts/barmodelmapper/customtablemodel.cpp
parentdad8cdbac13eaf3ed33fdf4157ebc242d5c13db5 (diff)
Update to new QRandomGenerator API
Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/barmodelmapper/customtablemodel.cpp')
-rw-r--r--examples/charts/barmodelmapper/customtablemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/charts/barmodelmapper/customtablemodel.cpp b/examples/charts/barmodelmapper/customtablemodel.cpp
index 71165dff..4bbf4191 100644
--- a/examples/charts/barmodelmapper/customtablemodel.cpp
+++ b/examples/charts/barmodelmapper/customtablemodel.cpp
@@ -45,9 +45,9 @@ CustomTableModel::CustomTableModel(QObject *parent) :
QVector<qreal>* dataVec = new QVector<qreal>(m_columnCount);
for (int k = 0; k < dataVec->size(); k++) {
if (k % 2 == 0)
- dataVec->replace(k, i * 50 + QRandomGenerator::bounded(20));
+ dataVec->replace(k, i * 50 + QRandomGenerator::global()->bounded(20));
else
- dataVec->replace(k, QRandomGenerator::bounded(100));
+ dataVec->replace(k, QRandomGenerator::global()->bounded(100));
}
m_data.append(dataVec);
}