![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Canonical colour prop accessors for SymbolLayer prop bags (gap A1.2). More...
Canonical colour prop accessors for SymbolLayer prop bags (gap A1.2).
Convention (X1): colours live in memory as QColor *variants*; SymbolLayer::toJson/fromJson convert to/from hex strings at the JSON boundary. Historically some writers stored hex strings in memory while readers used QVariant::value<QColor>() (which does not parse hex), silently dropping colours. These helpers end the split: reads tolerate BOTH encodings forever (back-compat with styles authored before the canonicalisation); writes emit the one canonical form. All new code must go through them.