d->m_falseFriends.append(falseFriend);
}
+void KEduVocTranslation::removeFalseFriend(KEduVocTranslation * falseFriend)
+{
+ d->m_falseFriends.removeAt(d->m_falseFriends.indexOf(falseFriend));
+}
QList< KEduVocTranslation* > KEduVocTranslation::falseFriends() const
{
return d->m_synonyms;
}
-
void KEduVocTranslation::addAntonym( KEduVocTranslation* antonym )
{
d->m_antonyms.append(antonym);
}
-
QList<KEduVocTranslation*> KEduVocTranslation::antonyms() const
{
return d->m_antonyms;
}
+void KEduVocTranslation::removeAntonym(KEduVocTranslation * antonym)
+{
+ d->m_antonyms.removeAt(d->m_antonyms.indexOf(antonym));
+}
void KEduVocTranslation::setExample( const QString & expr )
{
*/
void addFalseFriend( KEduVocTranslation* falseFriend );
+ /**
+ * remove a false friend
+ * @param falseFriend false friend of this index
+ */
+ void removeFalseFriend( KEduVocTranslation* falseFriend );
+
/**
* returns false friends of this expression
* @return list of false friends
*/
void addAntonym( KEduVocTranslation* antonym );
+ /**
+ * remove a antonym
+ * @param antonym
+ */
+ void removeAntonym( KEduVocTranslation* antonym );
+
/**
* returns antonyms of this expression
* @return antonyms