![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BB Phase 8.6.16 — QStyledItemDelegate for the LegendLayerTreeModel "Color" column. Paints a swatch + chip; click opens QColorDialog and writes the picked colour back through the model (which pushes a SetRendererClassColorCommand onto the canvas undo stack). More...
#include <QStyledItemDelegate>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::LegendColorDelegate |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Slice BB Phase 8.6.16 — QStyledItemDelegate for the LegendLayerTreeModel "Color" column. Paints a swatch + chip; click opens QColorDialog and writes the picked colour back through the model (which pushes a SetRendererClassColorCommand onto the canvas undo stack).
Greyed out (no edit affordance) when the model reports EditableRole == false for the cell — i.e. the layer's renderer doesn't support per-class colour edits, or the row is a layer header rather than an item.