![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QMetaType>#include <QString>#include <openswmm/engine/openswmm_callbacks.h>Go to the source code of this file.
Classes | |
| struct | NodeCompoundEditRef |
Functions | |
| void | registerNodeCompoundEditRefConverter () |
Slice DB.2 — Compound-attribute cell value for the node Property Browser. Carries everything the per-cell button widget needs to (a) display a short summary and (b) open the right dialog for the underlying SWMM concept (Inflows / DWF / RDII / Treatment).
Registered as a Qt metatype so QPropertyModel can store it via QVariant::fromValue(...) and the matching custom editor creator (NodeCompoundEditButton) is instantiated by the delegate when the cell goes into edit mode. A QMetaType string converter is also installed so the read-only display state shows the summary string rather than QVariant<NodeCompoundEditRef>.
| void registerNodeCompoundEditRefConverter | ( | ) |
Install the NodeCompoundEditRef → QString metatype converter so the read-only DisplayRole path on QPropertyModel renders summary in the cell when the user isn't actively editing. Idempotent — safe to call multiple times from different initialisers.