]> Git trees. - libqmvoc.git/commitdiff
Implement KEduVocExpression::removeTranslation(int index).
authorFrederik Gladhorn <gladhorn@kde.org>
Tue, 28 Aug 2007 00:00:27 +0000 (00:00 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Tue, 28 Aug 2007 00:00:27 +0000 (00:00 +0000)
Only a call to remove() of the QMap.

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705457

keduvocdocument/keduvocexpression.cpp

index 62c447b5404627eefae36a9abacf3e82d4070422..6f0054974496949411aa46a6886fbe52fed204ab 100644 (file)
@@ -106,7 +106,6 @@ KEduVocExpression::KEduVocExpression(const QString & expression, const QString &
       }
       translationIndex++;
       setTranslation(translationIndex, expr.simplified());
-    //}
   }
 }
 
@@ -125,7 +124,7 @@ KEduVocExpression::~KEduVocExpression()
 
 void KEduVocExpression::removeTranslation(int index)
 {
-    /// @todo IMPLEMENT ME - this will be really easy to implement as soon as the translation class contains all this rubbish.
+    d->m_translations.remove(index);
 }