Public Member Functions | List of all members
pqHighlightItemDelegate Class Reference

pqHighlightItemDelegate is a delegate used to highlight item views It is currently used to highlight matching items found using the pqItemViewSearchWidget. More...

#include <pqHighlightItemDelegate.h>

Inherits QStyledItemDelegate.

Public Member Functions

 pqHighlightItemDelegate (QColor color=QColor(Qt::white), QObject *parentObject=nullptr)
 Construct the pqHighlightItemDelegate The variable color is used to specify the highlight color, defaults to QColor(Qt::white) More...
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Detailed Description

pqHighlightItemDelegate is a delegate used to highlight item views It is currently used to highlight matching items found using the pqItemViewSearchWidget.

It works by repainting the item with a colored background.

Definition at line 45 of file pqHighlightItemDelegate.h.

Constructor & Destructor Documentation

◆ pqHighlightItemDelegate()

pqHighlightItemDelegate::pqHighlightItemDelegate ( QColor  color = QColor(Qt::white),
QObject *  parentObject = nullptr 
)
inline

Construct the pqHighlightItemDelegate The variable color is used to specify the highlight color, defaults to QColor(Qt::white)

Definition at line 55 of file pqHighlightItemDelegate.h.

Member Function Documentation

◆ paint()

void pqHighlightItemDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

The documentation for this class was generated from the following file: