From: abn Date: Wed, 10 Sep 2014 14:41:59 +0000 (+0200) Subject: Porting PV4.2: fixing connection to the DeleteReaction. X-Git-Tag: V7_5_0a1~1^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96cde4cda45d82bf2728603c5dcadbd9dcd0f3ba;p=modules%2Fparavis.git Porting PV4.2: fixing connection to the DeleteReaction. --- diff --git a/src/PVGUI/PVGUI_Module_widgets.cxx b/src/PVGUI/PVGUI_Module_widgets.cxx index 965b30b7..152f7dbf 100644 --- a/src/PVGUI/PVGUI_Module_widgets.cxx +++ b/src/PVGUI/PVGUI_Module_widgets.cxx @@ -63,6 +63,7 @@ #include #include #include +#include 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();