summaryrefslogtreecommitdiff
path: root/listdelegate.h
blob: d364b04b7b46addc89dc1b1959d1d7135d51e8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef LISTDELEGATE_H
#define LISTDELEGATE_H

#include <QStyledItemDelegate>

class ListDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	ListDelegate(QObject *parent = 0);
	void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
	QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;

};

#endif