www.pudn.com > treeView.rar > itemdelegate.h, change:2011-03-13,size:549b


#ifndef ITEMDELEGATE_H 
#define ITEMDELEGATE_H 
 
#include <QItemDelegate> 
 
class ItemDelegate : public QItemDelegate 
{ 
    Q_OBJECT 
public: 
    explicit ItemDelegate(QObject *parent = 0); 
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; 
    QWidget  *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; 
    void setEditorData(QWidget *editor, const QModelIndex &index) const; 
signals: 
 
public slots: 
 
}; 
 
#endif // ITEMDELEGATE_H