]> Git trees. - libqmvoc.git/commitdiff
Make sure new translations are appended with the right type. Move from parley to...
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 10 Sep 2007 13:35:55 +0000 (13:35 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 10 Sep 2007 13:35:55 +0000 (13:35 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=710612

keduvocdocument/keduvocdocument.cpp
keduvocdocument/keduvocdocument.h

index 715e982b89bb55021eb592baa0698371a03f2f65..5542014fd93c718dbd87ed424bd236720a0c06fb 100644 (file)
@@ -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;
 }
 
index 7b59fb5ff66266e7866793f961c5b62d92c0d95c..77be0832f8f8ac6f53e96e56f3f44a49d01cdfd3 100644 (file)
@@ -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 ***