ParaView/VTK active view is not tracked by playback
While working on #22 (closed) , found that the active view is not tracked, unless the view records a mouse-click. SpreadSheet views record higher level events, like
setCurrent. That means when replaying a recorded test, there is no way to activate the spreadsheet view again once a render view has been clicked on.
In particular, if the spreadsheet is not active, this causes the multi-select events not to replay correctly.
pqMultiViewWidget::eventFilter sets the active view based on
MouseButtonPress. I see two approaches:
- Detect that the
setCurrentevent should activate a view, and recorded an
activateViewevent, or a
- Install an observer to record
QObject::connect(&pqActiveObjects::instance(), SIGNAL(viewChanged(pqView*)), this->Model, SLOT(setActiveView(pqView*)));