scroll the controls panel's rows instead of clipping them

This commit is contained in:
2026-08-07 20:42:56 +02:00
parent 40415e663b
commit 0b8f5eccd6
2 changed files with 59 additions and 16 deletions

View File

@@ -10,6 +10,7 @@
class GameWorldView;
class QLabel;
class QScrollArea;
class QTimer;
class QVBoxLayout;
@@ -64,6 +65,9 @@ private:
const GameWorldView* m_view;
QLabel* m_heading;
// Scrolls the rows once they outgrow the space the panel has (REQ-UI-CONTROLS-PANEL).
// The heading is deliberately outside it, so it stays put and stays clickable.
QScrollArea* m_scrollArea;
QWidget* m_rows;
QVBoxLayout* m_rowsLayout;
QTimer* m_refreshTimer;