From c896c6b79b7ecf0f145a1dcd6aee7f0134e33d0d Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 15 May 2014 22:52:13 +0200 Subject: [PATCH] Add missing QDnsLookup constructor implementation Task-number: QTBUG-39136 Change-Id: I4d2626416fae99339988cd994653ce7ec753f081 Reviewed-by: Richard J. Moore Reviewed-by: Thiago Macieira --- src/network/kernel/qdnslookup.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/network/kernel/qdnslookup.cpp b/src/network/kernel/qdnslookup.cpp index e111a190cb..b7e6bad0a7 100644 --- a/src/network/kernel/qdnslookup.cpp +++ b/src/network/kernel/qdnslookup.cpp @@ -283,9 +283,21 @@ QDnsLookup::QDnsLookup(Type type, const QString &name, QObject *parent) /*! \fn QDnsLookup::QDnsLookup(Type type, const QString &name, const QHostAddress &nameserver, QObject *parent) - \internal + \since 5.4 + Constructs a QDnsLookup object for the given \a type, \a name and + \a nameserver and sets \a parent as the parent object. */ +QDnsLookup::QDnsLookup(Type type, const QString &name, const QHostAddress &nameserver, QObject *parent) + : QObject(*new QDnsLookupPrivate, parent) +{ + Q_D(QDnsLookup); + qRegisterMetaType(); + d->name = name; + d->type = type; + d->nameserver = nameserver; +} + /*! Destroys the QDnsLookup object.