diff -r 3738fe97f027 -r 8aed59de29f9 videocollection/tsrc/stubs/inc/hbwidget.h --- a/videocollection/tsrc/stubs/inc/hbwidget.h Thu Apr 01 23:32:44 2010 +0300 +++ b/videocollection/tsrc/stubs/inc/hbwidget.h Fri Apr 16 18:13:14 2010 +0300 @@ -17,8 +17,10 @@ #ifndef HBWIDGET_H #define HBWIDGET_H + #include #include +#include /** * counter to make sure alloc dealloc match @@ -33,7 +35,15 @@ virtual ~HbWidget(){initializeCount--;} - void clearActions() {} + void clearActions() + { + // Note actions().clear() does not work as actions() returns a copy of the actions list. + QList act = actions(); + QAction* temp; + foreach(temp, act) { + this->removeAction(temp); + } + } static int initializeCount; };