Commit 2699e85d authored by T.J. Corona's avatar T.J. Corona
Browse files

Use new-style signal/slot connection for pqPropertiesPanel

The signatures for pqPropertiesPanel::deleteRequested and
pqDeleteReaction::deleteSource have changed. Qt's "new" signal/slot
syntax will be agnostic to the change in signature, so this update will
be backwards and forwards-compatible.
parent b22b802c
......@@ -30,6 +30,7 @@
#include "pqPVApplicationCore.h"
#include "pqParaViewBehaviors.h"
#include "pqParaViewMenuBuilders.h"
#include "pqPipelineSource.h"
#include "pqStandardViewFrameActionsImplementation.h"
#include "pqTestUtility.h"
......@@ -318,8 +319,8 @@ void mbMainWindow::postParaViewSetup()
// Enable delete from the properties panel.
auto actionDel = new QAction(this);
auto reactionDel = new pqDeleteReaction(actionDel);
QObject::connect(this->Internals->proxyTabWidget, SIGNAL(deleteRequested(pqPipelineSource*)),
reactionDel, SLOT(deleteSource(pqPipelineSource*)));
QObject::connect(this->Internals->proxyTabWidget, &pqPropertiesPanel::deleteRequested,
reactionDel, &pqDeleteReaction::deleteSource);
// Prepare sources and filters from XML
// Load the filter and source XML configurations like
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment