Use fully qualified signal arguments in QNetworkInformation

Also in QNetworkInformationBackend.

Task-number: QTBUG-125026
Change-Id: I3cc722a9e6db284a393bfddf0dfa4ebbcb6b4d07
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit d9d384b94fba0e15ed7f564309b0fbc48e5f4d7a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
bb10
Mate Barany 2024-06-17 12:52:13 +02:00 committed by Qt Cherry-pick Bot
parent 7225d11156
commit 766244e033
3 changed files with 5 additions and 5 deletions

View File

@ -328,7 +328,7 @@ QNetworkInformationBackend::~QNetworkInformationBackend() = default;
*/
/*!
\fn void QNetworkInformationBackend::reachabilityChanged()
\fn void QNetworkInformationBackend::reachabilityChanged(NetworkInformation::Reachability reachability)
You should not emit this signal manually, call setReachability()
instead which will emit this signal when the value changes.

View File

@ -76,9 +76,9 @@ public:
static QNetworkInformation *instance();
Q_SIGNALS:
void reachabilityChanged(Reachability newReachability);
void reachabilityChanged(QNetworkInformation::Reachability newReachability);
void isBehindCaptivePortalChanged(bool state);
void transportMediumChanged(TransportMedium current);
void transportMediumChanged(QNetworkInformation::TransportMedium current);
void isMeteredChanged(bool isMetered);
private:

View File

@ -74,9 +74,9 @@ public:
}
Q_SIGNALS:
void reachabilityChanged(Reachability reachability);
void reachabilityChanged(QNetworkInformation::Reachability reachability);
void behindCaptivePortalChanged(bool behindPortal);
void transportMediumChanged(TransportMedium medium);
void transportMediumChanged(QNetworkInformation::TransportMedium medium);
void isMeteredChanged(bool isMetered);
protected: