SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
OpenSWMM::Ui Namespace Reference

Functions

QScrollArea * wrapInScrollArea (QWidget *content, QWidget *parent=nullptr)
 Wrap content in a frameless, resizable QScrollArea.
 

Variables

constexpr int kSpinMinWidthPx = 110
 
constexpr int kComboMinWidthPx = 140
 

Function Documentation

◆ wrapInScrollArea()

QScrollArea * OpenSWMM::Ui::wrapInScrollArea ( QWidget *  content,
QWidget *  parent = nullptr 
)
inline

Wrap content in a frameless, resizable QScrollArea.

Parameters
contentThe fully-built content widget to host (takes ownership).
parentOptional parent for the scroll area.
Returns
The scroll area; insert it where content would have been added.

The scroll area resizes content to the viewport width and shows a scrollbar when the viewport is smaller than the content's minimum — so the dialog/dock may shrink freely while the content stays at a readable size.

Here is the caller graph for this function:

Variable Documentation

◆ kComboMinWidthPx

constexpr int OpenSWMM::Ui::kComboMinWidthPx = 140
inlineconstexpr

◆ kSpinMinWidthPx

constexpr int OpenSWMM::Ui::kSpinMinWidthPx = 110
inlineconstexpr

Minimum widths for controls that otherwise collapse in a narrow panel. Shared so spin boxes / combo boxes stay readable once the content scrolls. Values match swmm2dresultsstylepanel.cpp, the existing reference.