if ( index < 0 )
return;
-///@todo get rid of this nonsense:
- /* not needed with qmap but for now all translations <= index are expected to exist
- // extend translations with empty strings if necessary
- for (int i = d->m_translations.count(); i < index + 1; i++) {
- d->m_translations.append("");
- }
- */
- for ( int i = d->m_translations.count(); i <= index; i++ ) {
- d->m_translations[i] = KEduVocTranslation( "" );
- }
+// extend translations with empty strings if necessary
+// for ( int i = d->m_translations.count(); i <= index; i++ ) {
+// d->m_translations[i] = KEduVocTranslation( "" );
+// }
// if (index <= translations.count())
d->m_translations[index] = expr.simplified();
KEduVocIdentifier::KEduVocIdentifier( const KEduVocIdentifier &other )
: d( new Private )
{
-///@todo
d->m_locale = other.d->m_locale;
d->m_name = other.d->m_name;
d->m_articles = other.d->m_articles;
d->m_personalPronouns = other.d->m_personalPronouns;
+ d->m_comment = other.d->m_comment;
+ d->m_sizeHint = other.d->m_sizeHint;
+ d->m_tenses = other.d->m_tenses;
+ d->m_type = other.d->m_type;
}
currentElement = domElementParent.firstChildElement( KV_CONJUG_GRP );
if ( !currentElement.isNull() ) {
-///@todo conjugations
int count = 0;
QDomElement domElementConjugChild = currentElement.firstChildElement(KV_CON_ENTRY);
if ( !entry->translation( 0 ).example().isEmpty() )
domElementOriginal.setAttribute( KV_EXAMPLE, entry->translation( 0 ).example() );
-///@todo enable writing of usages
+///@todo enable writing of usages in old format
/*
if (!entry->translation(0).usageLabel().isEmpty() )
domElementOriginal.setAttribute(KV_USAGE, entry->translation(0).usageLabel());