Positioning register inspection window at the center of the main Insight window

This commit is contained in:
Nav
2021-10-06 23:28:31 +01:00
parent 9c9915ee80
commit c2ff87fd8d

View File

@@ -210,6 +210,10 @@ TargetRegisterInspectorWindow::TargetRegisterInspectorWindow(
this->updateRegisterValueInputField(); this->updateRegisterValueInputField();
this->onTargetStateChanged(currentTargetState); this->onTargetStateChanged(currentTargetState);
// Position the inspection window at the center of the main Insight window
this->move(parent->window()->geometry().center() - this->rect().center());
this->show(); this->show();
} }