summaryrefslogtreecommitdiffstats
path: root/examples/charts/barmodelmapper/customtablemodel.cpp
diff options
context:
space:
mode:
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);
}