Skip to content

Commit

Permalink
Refs #11677 fix the focus of the splatterplot
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed May 1, 2015
1 parent 7dfccb2 commit 30b49de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Expand Up @@ -75,7 +75,7 @@ class EXPORT_OPT_MANTIDVATES_SIMPLEGUI_VIEWWIDGETS ViewBase : public QWidget
virtual pqRenderView *createRenderView(QWidget *container,
QString viewName=QString(""));
/// Remove all filters of a given name: i.e. Slice.
virtual void destroyFilter(pqObjectBuilder *builder, const QString &name);
virtual void destroyFilter(const QString &name);
/// Destroy sources and view relevant to mode switching.
virtual void destroyView() = 0;
/// Retrieve the current time step.
Expand Down
Expand Up @@ -466,8 +466,7 @@ void SplatterPlotView::onRemovePeaksTable()

if (m_peaksFilter)
{
pqObjectBuilder *builder = pqApplicationCore::instance()->getObjectBuilder();
builder->destroy(m_peaksFilter);
this->destroyFilter(QString("MDPeaksFilter"));
}
}

Expand Down
Expand Up @@ -121,7 +121,7 @@ void StandardView::setupViewButtons()
void StandardView::destroyView()
{
pqObjectBuilder *builder = pqApplicationCore::instance()->getObjectBuilder();
this->destroyFilter(builder, QString("Slice"));
this->destroyFilter(QString("Slice"));
builder->destroy(this->view);
}

Expand Down
Expand Up @@ -91,13 +91,10 @@ pqRenderView* ViewBase::createRenderView(QWidget* widget, QString viewName)

/**
* This function removes all filters of a given name: i.e. Slice.
* @param builder the ParaView object builder
* @param name the class name of the filters to remove
*/
void ViewBase::destroyFilter(pqObjectBuilder *builder, const QString &name)
void ViewBase::destroyFilter(const QString &name)
{
(void) builder;

pqServer *server = pqActiveObjects::instance().activeServer();
pqServerManagerModel *smModel = pqApplicationCore::instance()->getServerManagerModel();
QList<pqPipelineSource *> sources;
Expand Down

0 comments on commit 30b49de

Please sign in to comment.