summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2021-05-21 16:36:57 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2021-05-31 17:25:22 +0200
commitda955aadf5d5189b4f8de3eb2ed1b2f2f129cb28 (patch)
treeb18fa8e5b1ca49971b9e3e97be4d263cdea8a67d /tests/manual
parent69982182a394618d4f121d2938d7d76196fe78f6 (diff)
QNetworkInformation: Behind captive portal
This patch adds the API, with no supporting backends Task-number: QTBUG-93848 Change-Id: I50454717f928819e1b990df91872675e842f9987 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp b/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp
index ab6b5335f9..79ca27a4d1 100644
--- a/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp
+++ b/tests/manual/qnetworkinformation/tst_qnetworkinformation.cpp
@@ -48,7 +48,13 @@ int main(int argc, char **argv)
qDebug() << "Updated:" << newStatus;
});
- qDebug() << "Initial:" << info->reachability();
+ QObject::connect(info, &QNetworkInformation::behindCaptivePortalChanged,
+ [](QNetworkInformation::TriState status) {
+ qDebug() << "Updated, behind captive portal:" << status;
+ });
+
+ qDebug() << "Initial reachability:" << info->reachability();
+ qDebug() << "Behind captive portal:" << info->behindCaptivePortal();
return app.exec();
}