diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-09-21 12:21:34 -0700 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 09:13:37 +0000 |
commit | 567b5bc67e54f496027da2e6d99aa7b39d64a606 (patch) | |
tree | 9bdb47dfba0e69e4d31c27e40bd4b25eefb624b2 /examples/charts/stackedbarchartdrilldown/main.cpp | |
parent | dad8cdbac13eaf3ed33fdf4157ebc242d5c13db5 (diff) |
Update to new QRandomGenerator API
Change-Id: I69f37f9304f24709a823fffd14e676c097712329
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/stackedbarchartdrilldown/main.cpp')
-rw-r--r-- | examples/charts/stackedbarchartdrilldown/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/stackedbarchartdrilldown/main.cpp b/examples/charts/stackedbarchartdrilldown/main.cpp index 46d00190..87035aea 100644 --- a/examples/charts/stackedbarchartdrilldown/main.cpp +++ b/examples/charts/stackedbarchartdrilldown/main.cpp @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) for (int month = 0; month < months.count(); month++) { QBarSet *weeklyCrop = new QBarSet(plant); for (int week = 0; week < weeks.count(); week++) - *weeklyCrop << QRandomGenerator::bounded(20); + *weeklyCrop << QRandomGenerator::global()->bounded(20); // Get the drilldown series from season series and add crop to it. seasonSeries->drilldownSeries(month)->append(weeklyCrop); *monthlyCrop << weeklyCrop->sum(); |