src
paraview-5.12
Qt
Components
pqHighlightItemDelegate.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqHighlightItemDelegate_h
5
#define pqHighlightItemDelegate_h
6
7
#include "pqComponentsModule.h"
8
#include <QStyledItemDelegate>
9
17
class
PQCOMPONENTS_EXPORT
pqHighlightItemDelegate
:
public
QStyledItemDelegate
18
{
19
Q_OBJECT
20
21
public
:
27
pqHighlightItemDelegate
(QColor color = QColor(Qt::white), QObject* parentObject =
nullptr
)
28
: QStyledItemDelegate(parentObject)
29
, HighlightColor(
color
)
30
{
31
}
32
33
void
paint(
34
QPainter* painter,
const
QStyleOptionViewItem& option,
const
QModelIndex& index)
const override
;
35
36
private
:
37
QColor HighlightColor;
38
};
39
40
#endif
pqHighlightItemDelegate::pqHighlightItemDelegate
pqHighlightItemDelegate(QColor color=QColor(Qt::white), QObject *parentObject=nullptr)
Construct the pqHighlightItemDelegate The variable color is used to specify the highlight color,...
Definition:
pqHighlightItemDelegate.h:27
color
color
pqHighlightItemDelegate
pqHighlightItemDelegate is a delegate used to highlight item views It is currently used to highlight ...
Definition:
pqHighlightItemDelegate.h:17
Generated by
1.8.17 on Wed Mar 27 2024