summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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;