aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-08 12:47:01 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-08 12:47:01 +0000
commitf24306761d73480962ce4604607f4abf19806742 (patch)
treebce9528f5f493ab61027aef21fc616df3f60c408 /source/QXmppIq.cpp
parentf4367130d868e9a4e9abcbfaecde350c9230c218 (diff)
downloadqxmpp-f24306761d73480962ce4604607f4abf19806742.tar.gz
add QXmppIq::parseElementFromChild() to make it symetrical to parsing
Diffstat (limited to 'source/QXmppIq.cpp')
-rw-r--r--source/QXmppIq.cpp5
1 files changed, 4 insertions, 1 deletions
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())