From f24306761d73480962ce4604607f4abf19806742 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 8 Jul 2010 12:47:01 +0000 Subject: add QXmppIq::parseElementFromChild() to make it symetrical to parsing --- source/QXmppIq.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/QXmppIq.cpp') diff --git a/source/QXmppIq.cpp b/source/QXmppIq.cpp index 55d72748..c4215d5f 100644 --- a/source/QXmppIq.cpp +++ b/source/QXmppIq.cpp @@ -52,9 +52,12 @@ void QXmppIq::setType(QXmppIq::Type type) void QXmppIq::parse(const QDomElement &element) { QXmppStanza::parse(element); - setTypeFromStr(element.attribute("type")); + parseElementFromChild(element); +} +void QXmppIq::parseElementFromChild(const QDomElement &element) +{ QXmppElementList extensions; QDomElement itemElement = element.firstChildElement(); while (!itemElement.isNull()) -- cgit v1.2.3