From bfe579613a12efe13be35b1a52975dddeb0d8026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Thu, 21 Oct 2021 13:07:33 +0200 Subject: QNI: Add a convenience method for loading the default plugin We have some official plugins, we may as well treat them as default and give a convenient function which loads those. Change-Id: I6251c77ac042b795bcf24b86e510e960ee4bab54 Reviewed-by: Qt CI Bot Reviewed-by: Timur Pocheptsov --- tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/manual') diff --git a/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp b/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp index e38ff7494f..8cac940874 100644 --- a/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp +++ b/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp @@ -46,9 +46,8 @@ int main(int argc, char **argv) QCoreApplication app(argc, argv); #endif - if (!QNetworkInformation::load(QNetworkInformation::Feature::Reachability - | QNetworkInformation::Feature::CaptivePortal - | QNetworkInformation::Feature::TransportMedium)) { + // Use the platform-default: + if (!QNetworkInformation::load()) { qWarning("Failed to load any backend"); qDebug() << "Backends available:" << QNetworkInformation::availableBackends().join(", "); return -1; -- cgit v1.2.3