]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Porting PV4.2: fixing connection to the DeleteReaction.
authorabn <adrien.bruneton@cea.fr>
Wed, 10 Sep 2014 14:41:59 +0000 (16:41 +0200)
committerabn <adrien.bruneton@cea.fr>
Wed, 10 Sep 2014 14:41:59 +0000 (16:41 +0200)
src/PVGUI/PVGUI_Module_widgets.cxx

index 965b30b7751dfd11760d3f4e8ba3f3a10f0b48b8..152f7dbf47af449cd487a057c8f4a084b08f33f9 100644 (file)
@@ -63,6 +63,7 @@
 #include <pqCollaborationPanel.h>
 #include <pqMemoryInspectorPanel.h>
 #include <pqColorMapEditor.h>
+#include <pqDeleteReaction.h>
 
 class ResizeHelper : public pqPVAnimationWidget
 {
@@ -122,6 +123,11 @@ void PVGUI_Module::setupDockWidgets()
   propertiesDock->setObjectName("propertiesPanel");
   propertiesDock->setWidget(propertiesPanel);
   connect( propertiesPanel, SIGNAL( helpRequested(const QString&, const QString&) ),  this, SLOT( showHelpForProxy(const QString&, const QString&) ) );
+  //            hook delete to pqDeleteReaction.
+  QAction* tempDeleteAction = new QAction(this);
+  pqDeleteReaction* handler = new pqDeleteReaction(tempDeleteAction);
+  handler->connect(propertiesPanel, SIGNAL(deleteRequested(pqPipelineSource*)), SLOT(deleteSource(pqPipelineSource*)));
+
   myDockWidgets[propertiesDock] = true;
 
   //Display Dock
@@ -279,7 +285,7 @@ void PVGUI_Module::setupDockWidgets()
   // Set up the dock window corners to give the vertical docks more room.
   desk->setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
   desk->setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea);
-  
+
   // Setup the default dock configuration ...
   statisticsViewDock->hide();
   comparativePanelDock->hide();