equal
deleted
inserted
replaced
192 // IDN support |
192 // IDN support |
193 QByteArray aceHostname = QUrl::toAce(hostName); |
193 QByteArray aceHostname = QUrl::toAce(hostName); |
194 results.setHostName(hostName); |
194 results.setHostName(hostName); |
195 if (aceHostname.isEmpty()) { |
195 if (aceHostname.isEmpty()) { |
196 results.setError(QHostInfo::HostNotFound); |
196 results.setError(QHostInfo::HostNotFound); |
197 results.setErrorString(hostName.isEmpty() ? QObject::tr("No host name given") : QObject::tr("Invalid hostname")); |
197 results.setErrorString(hostName.isEmpty() ? |
|
198 QCoreApplication::translate("QHostInfoAgent", "No host name given") : |
|
199 QCoreApplication::translate("QHostInfoAgent", "Invalid hostname")); |
198 return results; |
200 return results; |
199 } |
201 } |
200 |
202 |
201 #if !defined (QT_NO_GETADDRINFO) |
203 #if !defined (QT_NO_GETADDRINFO) |
202 // Call getaddrinfo, and place all IPv4 addresses at the start and |
204 // Call getaddrinfo, and place all IPv4 addresses at the start and |