diff options
Diffstat (limited to 'examples/charts/modeldata/customtablemodel.cpp')
-rw-r--r-- | examples/charts/modeldata/customtablemodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/charts/modeldata/customtablemodel.cpp b/examples/charts/modeldata/customtablemodel.cpp index e36a5d3d..8ef3c2a9 100644 --- a/examples/charts/modeldata/customtablemodel.cpp +++ b/examples/charts/modeldata/customtablemodel.cpp @@ -44,9 +44,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); } |