diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-08 12:47:01 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-07-08 12:47:01 +0000 |
| commit | f24306761d73480962ce4604607f4abf19806742 (patch) | |
| tree | bce9528f5f493ab61027aef21fc616df3f60c408 /source/QXmppIq.cpp | |
| parent | f4367130d868e9a4e9abcbfaecde350c9230c218 (diff) | |
| download | qxmpp-f24306761d73480962ce4604607f4abf19806742.tar.gz | |
add QXmppIq::parseElementFromChild() to make it symetrical to parsing
Diffstat (limited to 'source/QXmppIq.cpp')
| -rw-r--r-- | source/QXmppIq.cpp | 5 |
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()) |
