diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-10-24 20:44:41 -0700 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 09:12:36 +0000 |
commit | f1ba95141c54b452edd737e9adb3461f303eb850 (patch) | |
tree | b0cf0cadce6eb6fe4f827726470cf5a2fd5ce681 /examples/svg | |
parent | 5f4e02ca605f640beed9eebe74182814795e087e (diff) | |
download | qtsvg-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.cpp | 2 |
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; |