97531ed217915bdf8eb96627acc0ff51fcbce31f
Implements REQ-UI-PANEL-MODAL. The recipe/schematic selection dialog and the ship layout configuration dialog are both opened from controls inside the selection panel, but Qt centered them on the game window, sending the cursor back across the view and then back again. MainWindow::placeOnSelectionPanel() centers a dialog on the panel's live global rectangle -- so a dragged panel carries the modal with it -- and clamps it into the window without resizing it, clamping the far edge before the near one so a dialog too large for the window lands on the window's top-left corner. It is called on the constructed dialog before exec(), which also stops QDialog from re-centering it on show. Placement is all that changes: modality, the auto-pause, the modal dim and dismissal are untouched, as are the modals not opened from the panel. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ne3mejABZoLWKLh8fgpM3x
Description
No description provided
Languages
C++
96%
CMake
2.2%
Python
1.2%
C
0.6%