summaryrefslogtreecommitdiff
path: root/examples/svg
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-10-24 20:44:41 -0700
committerLars Knoll <lars.knoll@qt.io>2017-11-03 09:12:36 +0000
commitf1ba95141c54b452edd737e9adb3461f303eb850 (patch)
treeb0cf0cadce6eb6fe4f827726470cf5a2fd5ce681 /examples/svg
parent5f4e02ca605f640beed9eebe74182814795e087e (diff)
downloadqtsvg-f1ba95141c54b452edd737e9adb3461f303eb850.tar.gz
Update to new QRandomGenerator APIv5.10.0-beta4
Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples/svg')
-rw-r--r--examples/svg/network/bearercloud/bearercloud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/svg/network/bearercloud/bearercloud.cpp b/examples/svg/network/bearercloud/bearercloud.cpp
index c72a07e..610764a 100644
--- a/examples/svg/network/bearercloud/bearercloud.cpp
+++ b/examples/svg/network/bearercloud/bearercloud.cpp
@@ -67,7 +67,7 @@ BearerCloud::BearerCloud(QObject *parent)
setSceneRect(-300, -300, 600, 600);
- offset[QNetworkConfiguration::Active] = QRandomGenerator::bounded(2 * M_PI);
+ offset[QNetworkConfiguration::Active] = QRandomGenerator::global()->bounded(2 * M_PI);
offset[QNetworkConfiguration::Discovered] = offset[QNetworkConfiguration::Active] + M_PI / 6;
offset[QNetworkConfiguration::Defined] = offset[QNetworkConfiguration::Discovered] - M_PI / 6;
offset[QNetworkConfiguration::Undefined] = offset[QNetworkConfiguration::Undefined] + M_PI / 6;