summaryrefslogtreecommitdiffstats
path: root/tests/manual/presenterchart/chartview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/presenterchart/chartview.cpp')
-rw-r--r--tests/manual/presenterchart/chartview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/presenterchart/chartview.cpp b/tests/manual/presenterchart/chartview.cpp
index 4bbf8080..b7d575de 100644
--- a/tests/manual/presenterchart/chartview.cpp
+++ b/tests/manual/presenterchart/chartview.cpp
@@ -32,7 +32,7 @@
#include <QtCharts/QScatterSeries>
#include <QtCharts/QSplineSeries>
#include <QtCharts/QAreaSeries>
-#include <QtCore/QTime>
+#include <QtCore/QRandomGenerator>
ChartView::ChartView(QChart *chart, QWidget *parent)
: QChartView(chart, parent),
@@ -62,7 +62,7 @@ ChartView::ChartView(QChart *chart, QWidget *parent)
int numPoints = 10;
for (int x = 0; x <= numPoints; ++x) {
- qreal y = qrand() % 100;
+ qreal y = QRandomGenerator::global()->bounded(100);
series0->append(x, y);
series1->append(x, y);
series2->append(x, y);