ParaView
|
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=0) | |
Constructor the pqHighlightItemDelegate The variable color is used to specify the highlight color QColor(Qt::white) More... | |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
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 47 of file pqHighlightItemDelegate.h.
|
inline |
Constructor the pqHighlightItemDelegate The variable color is used to specify the highlight color QColor(Qt::white)
Definition at line 55 of file pqHighlightItemDelegate.h.
void pqHighlightItemDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |