Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
ejeffecteddelegate.h 546 Bytes
Copy Edit Web IDE Raw Blame History
unix_chen authored 2018-03-26 07:59 . init
#ifndef EJAFFECTEDDELEGATE_H
#define EJAFFECTEDDELEGATE_H
#include <QStyledItemDelegate>
class EJEffectedDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
EJEffectedDelegate(QObject *parent = 0);
signals:
void clicked(bool check, const QModelIndex index);
protected:
void paint(QPainter* painter,const QStyleOptionViewItem& option,const QModelIndex& index) const;
bool editorEvent(QEvent *event,QAbstractItemModel *model,const QStyleOptionViewItem &option,const QModelIndex &index);
};
#endif // EJAFFECTEDDELEGATE_H

Comment ( 0 )

Sign in for post a comment