Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/tests/mymoneytag-test.cpp
Context not available. | |||||
33 | QDomElement parent = doc.createElement("Test"); | 33 | QDomElement parent = doc.createElement("Test"); | ||
---|---|---|---|---|---|
34 | doc.appendChild(parent); | 34 | doc.appendChild(parent); | ||
35 | MyMoneyTag tag1; | 35 | MyMoneyTag tag1; | ||
36 | tag1.m_id = "some random id";//if the ID isn't set, w ethrow an exception | 36 | tag1.d_func()->m_id = "some random id";//if the ID isn't set, w ethrow an exception | ||
37 | tag1.writeXML(doc, parent); | 37 | tag1.writeXML(doc, parent); | ||
38 | QDomElement el = parent.firstChild().toElement(); | 38 | QDomElement el = parent.firstChild().toElement(); | ||
39 | QVERIFY(!el.isNull()); | 39 | QVERIFY(!el.isNull()); | ||
Context not available. |