From 68da562eb62f21b4e4e3f2e14e8b72527d71a2ee Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Sat, 5 Jan 2008 22:39:20 +0000 Subject: [PATCH] Set meta word types when reading kvtml-1 svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=757801 --- keduvocdocument/keduvockvtmlcompability.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/keduvocdocument/keduvockvtmlcompability.cpp b/keduvocdocument/keduvockvtmlcompability.cpp index d3872d0..4f5f679 100644 --- a/keduvocdocument/keduvockvtmlcompability.cpp +++ b/keduvocdocument/keduvockvtmlcompability.cpp @@ -243,6 +243,8 @@ void KEduVocKvtmlCompability::setupWordTypes(KEduVocWordType * parent) parent->appendChildContainer(wordType); m_userdefinedTypeCounter++; } + static_cast(parent->childContainer(4))->setWordType(KEduVocWordType::Adjective); + static_cast(parent->childContainer(5))->setWordType(KEduVocWordType::Adverb); KEduVocWordType* numeral = static_cast(parent->childContainer(8)); KEduVocWordType* wordType = new KEduVocWordType( @@ -259,18 +261,26 @@ void KEduVocKvtmlCompability::setupWordTypes(KEduVocWordType * parent) article->appendChildContainer(wordType); KEduVocWordType* verb = static_cast(parent->childContainer(0)); + verb->setWordType(KEduVocWordType::Verb); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with regular conjugation","Regular" ), verb); + wordType->setWordType(KEduVocWordType::Verb); verb->appendChildContainer(wordType); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Verb with irregular conjugation","Irregular" ), verb); verb->appendChildContainer(wordType); + wordType->setWordType(KEduVocWordType::Verb); KEduVocWordType* noun = static_cast(parent->childContainer(1)); + noun->setWordType(KEduVocWordType::Noun); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Male" ), noun); noun->appendChildContainer(wordType); + wordType->setWordType(KEduVocWordType::NounMale); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Female" ), noun); noun->appendChildContainer(wordType); + wordType->setWordType(KEduVocWordType::NounFemale); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Noun", "Neutral" ), noun); noun->appendChildContainer(wordType); + wordType->setWordType(KEduVocWordType::NounNeutral); + KEduVocWordType* pronoun = static_cast(parent->childContainer(6)); wordType = new KEduVocWordType(i18nc( "@item:inlistbox A subtype of the grammatical word type: Pronoun (my, your, his, her...)", "Possessive" ), pronoun); -- 2.47.3