defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #ifndef LIBRARYDELEGATE_HPP 00012 #define LIBRARYDELEGATE_HPP 00013 00014 #include <QStyledItemDelegate> 00015 #include "libraryitem.hpp" 00016 00017 namespace Library 00018 { 00021 class LibraryDelegate : public QStyledItemDelegate 00022 { 00023 public: 00024 LibraryDelegate(QObject *parent = 0); 00025 QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; 00026 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; 00027 00028 QPixmap note; 00029 }; 00030 } 00031 00032 #endif // LIBRARYDELEGATE_HPP