ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EntityItemDelegate Class Reference

Data-driven item delegate configured by a per-column style vector. More...

#include <EntityItemDelegate.hpp>

Inherits QStyledItemDelegate.

Collaboration diagram for EntityItemDelegate:
Collaboration graph

Public Member Functions

 EntityItemDelegate (std::vector< column_style > styles, QObject *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void set_badge_color_resolver (std::size_t column, badge_color_resolver resolver)
 

Detailed Description

Data-driven item delegate configured by a per-column style vector.

Replaces the need for per-entity delegate subclasses for simple column formatting (fonts, alignment, icon centering, ForegroundRole).