logplus/Workflow/WFWidget/include/PaiListItemDelegate.h

47 lines
936 B
C
Raw Normal View History

2026-01-17 12:55:45 +08:00
/**
* @file PaiListItemDelegate.h
* @brief PAI系统ListItem默认风格
* @date 2014-11-25
*/
#ifndef PAI_FRAME_WIDGET_PAILISTITEMDELEGATE_H
#define PAI_FRAME_WIDGET_PAILISTITEMDELEGATE_H
#include <QStyledItemDelegate>
#include <QPen>
class QListView;
namespace pai
{
namespace gui
{
/**
* @class PaiListItemDelegate
* @brief PAI风格 listItem delegate
*/
class PaiListItemDelegate: public QStyledItemDelegate
{
public:
/**
* @brief
* @param[in] pParent
*/
PaiListItemDelegate(QObject *pParent = NULL);
protected:
/**
* @brief
* @param[in] pPainter
* @param[in] option
* @param[in] index Model
*/
void paint(QPainter *pPainter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
private:
QPen m_GridPen; ///< 画笔
};
}
}
#endif ///< PAI_FRAME_WIDGET_PAILISTITEMDELEGATE_H