From 96cde4cda45d82bf2728603c5dcadbd9dcd0f3ba Mon Sep 17 00:00:00 2001 From: abn Date: Wed, 10 Sep 2014 16:41:59 +0200 Subject: [PATCH] Porting PV4.2: fixing connection to the DeleteReaction. --- src/PVGUI/PVGUI_Module_widgets.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); -- 2.39.2