/*
 * TagTreeDelegate.h
 *
 *  Created on: 22.10.2009
 *      Author: stefan.detter
 */

#ifndef TAGTREEDELEGATE_H_
#define TAGTREEDELEGATE_H_

#include <QStyledItemDelegate>
#include <QSortFilterProxyModel>

class TagTreeDelegate : public QStyledItemDelegate
{
	Q_OBJECT
public:
	TagTreeDelegate(QSortFilterProxyModel* proxy, QObject* parent = 0);
	virtual ~TagTreeDelegate();

	virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const;

private:
	QSortFilterProxyModel* 	m_proxy;
	QStyle*					m_progressbarStyle;
};

#endif /* TAGTREEDELEGATE_H_ */
