qnetconmonitor: Fix misspelling of accessible

Change-Id: Ia898d305f64abb5d3d1de007c764c143b26c7654
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Mårten Nordheim 2019-05-10 15:08:12 +02:00
parent dc431b7e85
commit 006baa1c60
5 changed files with 8 additions and 8 deletions

View File

@ -493,9 +493,9 @@ QNetworkAccessManager::QNetworkAccessManager(QObject *parent)
connect(&d->statusMonitor, SIGNAL(onlineStateChanged(bool)),
SLOT(_q_onlineStateChanged(bool)));
#ifdef QT_NO_BEARERMANAGEMENT
d->networkAccessible = d->statusMonitor.isNetworkAccesible();
d->networkAccessible = d->statusMonitor.isNetworkAccessible();
#else
d->networkAccessible = d->statusMonitor.isNetworkAccesible() ? Accessible : NotAccessible;
d->networkAccessible = d->statusMonitor.isNetworkAccessible() ? Accessible : NotAccessible;
} else {
// if a session is required, we track online state through
// the QNetworkSession's signals if a request is already made.

View File

@ -376,7 +376,7 @@ bool QNetworkStatusMonitor::isMonitoring() const
return d->ipv4Probe.isMonitoring() || d->ipv6Probe.isMonitoring();
}
bool QNetworkStatusMonitor::isNetworkAccesible()
bool QNetworkStatusMonitor::isNetworkAccessible()
{
// This function is to be executed on the thread that created
// and uses 'this'.

View File

@ -99,7 +99,7 @@ public:
QNetworkStatusMonitor();
~QNetworkStatusMonitor();
bool isNetworkAccesible();
bool isNetworkAccessible();
bool start();
void stop();

View File

@ -123,7 +123,7 @@ bool QNetworkStatusMonitor::isMonitoring() const
return false;
}
bool QNetworkStatusMonitor::isNetworkAccesible()
bool QNetworkStatusMonitor::isNetworkAccessible()
{
return false;
}

View File

@ -634,9 +634,9 @@ void QNetworkStatusMonitorPrivate::setConnectivity(NLM_CONNECTIVITY newConnectiv
{
Q_Q(QNetworkStatusMonitor);
const bool oldAccessibility = q->isNetworkAccesible();
const bool oldAccessibility = q->isNetworkAccessible();
connectivity = newConnectivity;
const bool accessibility = q->isNetworkAccesible();
const bool accessibility = q->isNetworkAccessible();
if (oldAccessibility != accessibility)
emit q->onlineStateChanged(accessibility);
}
@ -689,7 +689,7 @@ bool QNetworkStatusMonitor::isMonitoring() const
return d_func()->monitoring;
}
bool QNetworkStatusMonitor::isNetworkAccesible()
bool QNetworkStatusMonitor::isNetworkAccessible()
{
return d_func()->connectivity
& (NLM_CONNECTIVITY_IPV4_INTERNET | NLM_CONNECTIVITY_IPV6_INTERNET