Moved closeEvent() handler from MemoryInspectionPaneWidget to base class PaneWidget
This commit is contained in:
@@ -52,4 +52,10 @@ namespace Bloom::Widgets
|
|||||||
this->attached = true;
|
this->attached = true;
|
||||||
emit this->paneAttached();
|
emit this->paneAttached();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PaneWidget::closeEvent(QCloseEvent* event) {
|
||||||
|
this->deactivate();
|
||||||
|
QWidget::closeEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,5 +36,7 @@ namespace Bloom::Widgets
|
|||||||
protected:
|
protected:
|
||||||
void detach();
|
void detach();
|
||||||
void attach();
|
void attach();
|
||||||
|
|
||||||
|
void closeEvent(QCloseEvent* event) override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -261,11 +261,6 @@ namespace Bloom::Widgets
|
|||||||
this->container->setFixedSize(size.width() - 1, size.height());
|
this->container->setFixedSize(size.width() - 1, size.height());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::closeEvent(QCloseEvent* event) {
|
|
||||||
this->deactivate();
|
|
||||||
QWidget::closeEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::postActivate() {
|
void TargetMemoryInspectionPane::postActivate() {
|
||||||
if (
|
if (
|
||||||
this->settings.refreshOnActivation
|
this->settings.refreshOnActivation
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent* event) override;
|
void resizeEvent(QResizeEvent* event) override;
|
||||||
void closeEvent(QCloseEvent* event) override;
|
|
||||||
|
|
||||||
void postActivate();
|
void postActivate();
|
||||||
void postDeactivate();
|
void postDeactivate();
|
||||||
|
|||||||
Reference in New Issue
Block a user