From: Frederik Gladhorn Date: Mon, 10 Sep 2007 13:35:55 +0000 (+0000) Subject: Make sure new translations are appended with the right type. Move from parley to... X-Git-Tag: v3.94.0~65 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=589b3a1a098a7f80a5fda93f3f5064617b2fb951;p=libqmvoc.git Make sure new translations are appended with the right type. Move from parley to lib. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=710612 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 715e982..5542014 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -829,6 +829,12 @@ kDebug() << "appendIdentifier: " << i << id.name() << id.locale(); } } + if ( i > 0 ) { + for (int i = 0; i < entryCount(); i++) { + entry(i)->translation(i).setType(entry(i)->translation(0).type()); + } + } + return i; } diff --git a/keduvocdocument/keduvocdocument.h b/keduvocdocument/keduvocdocument.h index 7b59fb5..77be083 100644 --- a/keduvocdocument/keduvocdocument.h +++ b/keduvocdocument/keduvocdocument.h @@ -369,19 +369,21 @@ public: /** * Retrieves the identifiers for the current query + * not written in the new version! * * @param org identifier for original * @param trans identifier for translation */ - void queryIdentifier( QString &org, QString &trans ) const; + KDE_DEPRECATED void queryIdentifier( QString &org, QString &trans ) const; /** * Sets the identifiers for the current query + * not written in the new version! * * @param org identifier for original * @param trans identifier for translation */ - void setQueryIdentifier( const QString &org, const QString &trans ); + KDE_DEPRECATED void setQueryIdentifier( const QString &org, const QString &trans ); // *** lesson methods ***