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
legendcolordelegate.h File Reference

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>
Include dependency graph for legendcolordelegate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::LegendColorDelegate
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

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).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.