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:
itsmattkc
2020-05-09 16:20:31 +10:00
parent 869f41fc50
commit 0340373faa
2 changed files with 0 additions and 9 deletions
-7
View File
@@ -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();
-2
View File
@@ -62,8 +62,6 @@ public slots:
protected:
void CreateScopePanel(ScopePanel::Type type);
virtual void showEvent(QShowEvent* e) override;
virtual void closeEvent(QCloseEvent* e) override;
};