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

Colour-swatch table cell with a double-click colour picker. More...

#include <QStyledItemDelegate>
Include dependency graph for colorcelldelegate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::ColorCellDelegate
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Colour-swatch table cell with a double-click colour picker.

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
    Paints the cell's Qt::BackgroundRole colour as a rounded swatch
    (checkerboard behind translucent colours) and opens QColorDialog
    on double-click, writing the pick back to Qt::BackgroundRole.
    Shared by the ClassificationEditor class table and the raster
    Paletted-renderer class table; originally lived inside
    classificationeditor.cpp (from KindRendererPanel).