Fixed bug where the PaneWidget size was not being recorded on resize
This commit is contained in:
@@ -58,12 +58,16 @@ namespace Bloom::Widgets
|
|||||||
if (!this->state.attached && this->state.detachedWindowState.has_value()) {
|
if (!this->state.attached && this->state.detachedWindowState.has_value()) {
|
||||||
this->state.detachedWindowState->size = this->size();
|
this->state.detachedWindowState->size = this->size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaneWidget::moveEvent(QMoveEvent* event) {
|
void PaneWidget::moveEvent(QMoveEvent* event) {
|
||||||
if (!this->state.attached && this->state.detachedWindowState.has_value()) {
|
if (!this->state.attached && this->state.detachedWindowState.has_value()) {
|
||||||
this->state.detachedWindowState->position = this->pos();
|
this->state.detachedWindowState->position = this->pos();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QWidget::moveEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaneWidget::closeEvent(QCloseEvent* event) {
|
void PaneWidget::closeEvent(QCloseEvent* event) {
|
||||||
|
|||||||
@@ -295,6 +295,8 @@ namespace Bloom::Widgets
|
|||||||
void TargetMemoryInspectionPane::resizeEvent(QResizeEvent* event) {
|
void TargetMemoryInspectionPane::resizeEvent(QResizeEvent* event) {
|
||||||
const auto size = this->size();
|
const auto size = this->size();
|
||||||
this->container->setFixedSize(size.width() - 1, size.height());
|
this->container->setFixedSize(size.width() - 1, size.height());
|
||||||
|
|
||||||
|
PaneWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::postActivate() {
|
void TargetMemoryInspectionPane::postActivate() {
|
||||||
|
|||||||
@@ -235,6 +235,8 @@ namespace Bloom::Widgets
|
|||||||
* the scroll area.
|
* the scroll area.
|
||||||
*/
|
*/
|
||||||
this->itemScrollArea->setFixedWidth(width - this->parentPanel->getHandleSize());
|
this->itemScrollArea->setFixedWidth(width - this->parentPanel->getHandleSize());
|
||||||
|
|
||||||
|
PaneWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TargetRegistersPaneWidget::postActivate() {
|
void TargetRegistersPaneWidget::postActivate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user