void KEduVocContainer::updateChildLessonEntries()
{
- kDebug() << "updateChildLessonEntries: " << name();
QList < KEduVocExpression* > entriesRecursive = entries();
foreach(KEduVocContainer *childContainer, d->m_childContainers)
void KEduVocContainer::invalidateChildLessonEntries()
{
- kDebug() << "invalidateChildLessonEntries: " << name();
d->m_childLessonEntriesValid = false;
// propagate to parent
if (d->m_parentContainer) {
bool readPersonalPronounChild(QDomElement & personElement, KEduVocPersonalPronoun & pronoun, KEduVocConjugation::ConjugationNumber number);
-
- /** read in a conjugation
- * @param conjugElement QDomElement for the conjugation group
- * @param curr_conjug conjugation object to populate
- */
- bool readConjugation( QDomElement &conjugElement, KEduVocConjugation &conjugation );
- bool readConjugationPerson( QDomElement &personElement, KEduVocConjugation &conjugation, KEduVocConjugation::ConjugationNumber number );
-
/** read the types
* @param typesElement QDomElement for the types group
*/
}
// conjugation
- QDomElement conjugationElement = parent.ownerDocument().createElement( KVTML_CONJUGATION );
foreach ( const QString &tense, conjugationTenses() ) {
+ QDomElement conjugationElement = parent.ownerDocument().createElement( KVTML_CONJUGATION );
conjugation(tense).toKVTML2(conjugationElement, tense);
- }
- if (conjugationElement.hasChildNodes()) {
parent.appendChild( conjugationElement );
}
while ( !conjugationElement.isNull() ) {
QDomElement tenseElement = conjugationElement.firstChildElement( KVTML_TENSE );
QString tense = tenseElement.text();
+kDebug() << "Read Conjugation: " << text() << tenseElement.text();
KEduVocConjugation *conjugation = KEduVocConjugation::fromKVTML2(conjugationElement);
setConjugation(tense, *conjugation);
delete conjugation;