2013-03-12 02:49:17 +05:30
|
|
|
#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;
|
2013-09-22 07:51:36 +05:30
|
|
|
};
|