]> Git trees. - libqmvoc.git/commitdiff
Implement removal of synonyms.
authorFrederik Gladhorn <gladhorn@kde.org>
Sun, 23 Mar 2008 11:02:22 +0000 (11:02 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sun, 23 Mar 2008 11:02:22 +0000 (11:02 +0000)
Getting there :)

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

keduvocdocument/keduvoctranslation.cpp
keduvocdocument/keduvoctranslation.h

index d72a377024a0ad101566087a459555225e9096f0..8d4e0d43e10b3b302848479a8c86610eeae638e4 100644 (file)
@@ -198,6 +198,10 @@ void KEduVocTranslation::addSynonym( KEduVocTranslation* synonym )
     d->m_synonyms.append(synonym);
 }
 
+void KEduVocTranslation::removeSynonym(KEduVocTranslation * synonym)
+{
+    d->m_synonyms.removeAt(d->m_synonyms.indexOf(synonym));
+}
 
 QList<KEduVocTranslation*> KEduVocTranslation::synonyms() const
 {
index e4588914f9d2eda267e6b8562b2577fe07009c78..d694145de2a2882df459f0de80bf69cf0aaac3dc 100644 (file)
@@ -222,6 +222,12 @@ public:
      */
     void addSynonym( KEduVocTranslation* synonym );
 
+    /**
+     * remove a synonym
+     * @param synonym
+     */
+    void removeSynonym( KEduVocTranslation* synonym );
+
     /**
      * returns synonyms of this expression
      * @return synonyms