Commit bf7c741c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Disable warning

parent fcf44d2e
Pipeline #178084 passed with stage
in 13 minutes and 47 seconds
......@@ -988,9 +988,12 @@ void AgentBase::setNeedsNetwork(bool needsNetwork)
d->mNeedsNetwork = needsNetwork;
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
if (d->mNeedsNetwork) {
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG("-Wdeprecated-declarations")
QT_WARNING_DISABLE_GCC("-Wdeprecated-declarations")
d->mNetworkManager = new QNetworkConfigurationManager(this);
connect(d->mNetworkManager, &QNetworkConfigurationManager::onlineStateChanged, d, &AgentBasePrivate::slotNetworkStatusChange, Qt::UniqueConnection);
QT_WARNING_POP
} else {
delete d->mNetworkManager;
d->mNetworkManager = nullptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment