summaryrefslogtreecommitdiffstats
path: root/gui/instancedelegate.h
blob: 56bc34ba16551bfa493241c4024aee293ee9d848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include <QStyledItemDelegate>

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