![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
QObject wrapper exposing SWMMElementSymbol fields as Q_PROPERTYs. More...
#include "layers/swmmmodellayer.h"#include <QColor>#include <QFont>#include <QObject>#include <functional>Go to the source code of this file.
Classes | |
| class | SwmmElementSymbolAdapter |
QObject wrapper exposing SWMMElementSymbol fields as Q_PROPERTYs.
Slice U-4. SWMMElementSymbol is a plain struct so it can't drive
the QPropertyModel-backed editor directly. This adapter holds a
live copy of the struct + a callback that writes the updated
copy back to the parent SWMMModelLayer (via setJunctionSymbol,
setConduitSymbol, …). Every Q_PROPERTY setter fires the writeback
immediately so edits propagate live.
The adapter is owned by the parent SWMMModelLayer (QObject
parent-child) so its lifetime tracks the layer.