logplus/logPlus/backgrounddelegate.h

16 lines
391 B
C++

#ifndef BACKGROUNDDELEGATE_H
#define BACKGROUNDDELEGATE_H
// 在头文件中声明
#include <QStyledItemDelegate>
class BackgroundDelegate : public QStyledItemDelegate
{
public:
explicit BackgroundDelegate(QObject *parent = nullptr);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};
#endif // BACKGROUNDDELEGATE_H