viewerpanel: only listen to closeEvent to pause
Using showEvent as well would pause if Maximize Panel was used which is undesirable.
This commit is contained in:
@@ -111,13 +111,6 @@ void ViewerPanelBase::CreateScopePanel(ScopePanel::Type type)
|
||||
vw->ForceUpdate();
|
||||
}
|
||||
|
||||
void ViewerPanelBase::showEvent(QShowEvent *e)
|
||||
{
|
||||
static_cast<ViewerWidget*>(GetTimeBasedWidget())->Pause();
|
||||
|
||||
TimeBasedPanel::showEvent(e);
|
||||
}
|
||||
|
||||
void ViewerPanelBase::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
static_cast<ViewerWidget*>(GetTimeBasedWidget())->Pause();
|
||||
|
||||
@@ -62,8 +62,6 @@ public slots:
|
||||
protected:
|
||||
void CreateScopePanel(ScopePanel::Type type);
|
||||
|
||||
virtual void showEvent(QShowEvent* e) override;
|
||||
|
||||
virtual void closeEvent(QCloseEvent* e) override;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user