From kde-commits Thu Mar 13 19:10:59 2003 From: Benjamin Meyer Date: Thu, 13 Mar 2003 19:10:59 +0000 To: kde-commits Subject: kdelibs/kdeui X-MARC-Message: https://marc.info/?l=kde-commits&m=104758275511004 CVS commit by bmeyer: Documented 2 functions that were previusly undocumented based upon what they do. Someone more familiar with KActionCollection is needed to double check that the function is doing everything that the function should be doing and if not correct it and the documentation sense the documentation was based upon what the function currently does. M +14 -3 kactioncollection.h 1.171 --- kdelibs/kdeui/kactioncollection.h #1.170:1.171 @@ -210,6 +210,17 @@ public: void insert( KAction* ); - void remove( KAction* ); - KAction* take( KAction* ); + + /** + * Removes an action from the collection and deletes it. + * @param action The KAction to remove. + */ + void remove( KAction* action ); + + /** + * Removes an action from the collection. + * @return NULL if not found else returns action. + * @param action the KAction to remove. + */ + KAction* take( KAction* action ); KActionCollection operator+ ( const KActionCollection& ) const;