]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Actions can be removed before QtxActionMgr destructor. Guarded pointers were used.
authorstv <stv@opencascade.com>
Thu, 12 Jan 2006 08:49:24 +0000 (08:49 +0000)
committerstv <stv@opencascade.com>
Thu, 12 Jan 2006 08:49:24 +0000 (08:49 +0000)
src/Qtx/QtxActionMgr.h

index 4cd9f2e38ce3fc59edbb5ce409db998745e48cfc..60fc342c04f3828b4bab0ab2d5715c31fe21e78e 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <qmap.h>
 #include <qobject.h>
+#include <qguardedptr.h>
 
 class QAction;
 class QDomNode;
@@ -81,7 +82,8 @@ protected:
   int              generateId() const;
 
 private:
-  typedef QMap<int, QAction*>  ActionMap;
+  typedef QGuardedPtr<QAction> ActionPtr;
+  typedef QMap<int, ActionPtr> ActionMap;
 
 private:
   bool             myUpdate;