]> Git trees. - libqmvoc.git/commitdiff
Remove all calls to document->originalIdentifier() - replaced by document->identifier(0).
authorFrederik Gladhorn <gladhorn@kde.org>
Wed, 29 Aug 2007 16:36:16 +0000 (16:36 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Wed, 29 Aug 2007 16:36:16 +0000 (16:36 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706177

keduvocdocument/keduvocdocument.cpp
keduvocdocument/keduvocdocument.h

index 377bcaa6d18cbd836af33cfecc45fc1f8f2daffe..d5a267162bc1966b6e66b7b926d850e2e4296a89 100644 (file)
@@ -779,23 +779,6 @@ void KEduVocDocument::removeIdentifier( int index )
 }
 
 
-QString KEduVocDocument::originalIdentifier() const
-{
-    if ( d->m_identifiers.size() > 0 )
-        return d->m_identifiers[0];
-    else
-        return "";
-}
-
-
-void KEduVocDocument::setOriginalIdentifier( const QString &id )
-{
-    if ( d->m_identifiers.size() > 0 ) {
-        d->m_identifiers[0] = id;
-    }
-}
-
-
 bool KEduVocDocument::isModified() const
 {
     return d->m_dirty;
@@ -1303,6 +1286,7 @@ int KEduVocDocument::cleanUp()
     return count;
 }
 
+
 void KEduVocDocument::shuffle()
 {
     KRandomSequence rs;
index 54e1141ea80172124394e3892d55cb197673486f..abd8183075409e2a9ebb741db4eb271379fb52a6 100644 (file)
@@ -118,7 +118,6 @@ public:
     KUrl url() const;
 
 
-
     /** set the title of the file
      * @param title title to set */
     void setTitle( const QString & title );
@@ -162,6 +161,7 @@ public:
     /** @returns the version of the loaded file */
     QString version() const;
 
+
     // *** entry methods ***
 
     /**
@@ -172,7 +172,7 @@ public:
     void appendEntry( KEduVocExpression *expression );
 
     /**
-     * Inserts a new expression
+     * Inserts a new expression at position @p index
      *
      * @param expression      expression to insert
      * @param index           index of entry
@@ -234,22 +234,10 @@ public:
      */
     int appendIdentifier( const QString & id );
 
-    /**
-     * Sets the original identifier
-     *
-     * @param id              the new identifier
-     */
-    void setOriginalIdentifier( const QString &id );
-
-    /**
-     * @returns the original identifier
-     */
-    QString originalIdentifier() const;
-
     /**
      * Sets the identifier of translation
      *
-     * @param index            number of translation 1..x
+     * @param index            number of translation 0..x
      * @param lang             thr language identifier: en=english, de=german, ...
      */
     void setIdentifier( int index, const QString &lang );
@@ -257,7 +245,7 @@ public:
     /**
      * Returns the identifier of translation @p index
      *
-     * @param index            number of translation 1..x
+     * @param index            number of translation 0..x
      * @returns                the language identifier: en=english, de=german, ...
      */
     QString identifier( int index ) const;