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
setCurrent
event should activate a view, and recorded anactivateView
event, or aMouseButtonPress
event - Install an observer to record
activateView
, likepqDataInformationWidget
does:
QObject::connect(&pqActiveObjects::instance(), SIGNAL(viewChanged(pqView*)), this->Model,
SLOT(setActiveView(pqView*)));