|
ORE Studio 0.0.4
|
Data-driven item delegate configured by a per-column style vector. More...
#include <EntityItemDelegate.hpp>
Inherits QStyledItemDelegate.

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