Qt5.7 backwards compatibility

This commit is contained in:
Bill Somerville 2020-08-07 22:40:15 +01:00
parent 0ba5d7e1bf
commit 7bafb5b71e
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 4 additions and 0 deletions

View File

@ -465,7 +465,11 @@ void MessageClient::set_server (QString const& server)
{
// queue a host address lookup
TRACE_UDP ("server host DNS lookup:" << server);
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
m_->dns_lookup_id_ = QHostInfo::lookupHost (server, &*m_, &MessageClient::impl::host_info_results);
#else
m_->dns_lookup_id_ = QHostInfo::lookupHost (server, &*m_, SLOT (host_info_results (QHostInfo)));
#endif
}
}