You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
516 B
C++

#ifndef CSTYLEDDELEGATE_H
#define CSTYLEDDELEGATE_H
#include <QStyledItemDelegate>
#define STYLEDDELEGATE_BOLD (Qt::UserRole+10)
#define STYLEDDELEGATE_ITALIC (Qt::UserRole+11)
#define STYLEDDELEGATE_COLOR (Qt::UserRole+12)
class cStyledDelegate : public QStyledItemDelegate
{
protected:
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
// QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
};
#endif // CSTYLEDDELEGATE_H