QLGridlineItemDelegate Class
#include <QLayers/qlgridlineitemdelegate.h>
Inherits: | QStyledItemDelegate, QLThemeable |
Public Functions
QLGridlineItemDelegate(QObject* parent = nullptr) | |
LAttribute* | grid_fill() const |
LAttribute* | grid_thickness() const |
virtual void | paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override |
Signals
void | changed() |
Detailed Description
A QLGridlineItemDelegate is a QStyledItemDelegate and a QLThemeable that provides an item delegate with a themeable gridline.
Member Function Documentation
QLGridlineItemDelegate(QObject* parent = nullptr)
Constructs a gridline item delegate.
void changed()
Signal
This signal is emitted when any of the item delegate's attributes are changed.
LAttribute* grid_fill() const
Returns a pointer to the delegate's grid-fill attribute.
LAttribute* grid_thickness() const
Returns a pointer to the delegate's grid-thickness attribute.
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
Virtual
Override
Renders the delegate using the given painter and style option for the item specified by index.