From: Frederik Gladhorn Date: Tue, 28 Aug 2007 00:00:27 +0000 (+0000) Subject: Implement KEduVocExpression::removeTranslation(int index). X-Git-Tag: v3.93.0~22 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=a5be3f9484976300d277db3ec7c6a0dde7880656;p=libqmvoc.git Implement KEduVocExpression::removeTranslation(int index). Only a call to remove() of the QMap. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=705457 --- diff --git a/keduvocdocument/keduvocexpression.cpp b/keduvocdocument/keduvocexpression.cpp index 62c447b..6f00549 100644 --- a/keduvocdocument/keduvocexpression.cpp +++ b/keduvocdocument/keduvocexpression.cpp @@ -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); }