You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
378 B
C++
10 lines
378 B
C++
#include <QStyledItemDelegate>
|
|
|
|
class CheckBoxDelegate : public QStyledItemDelegate {
|
|
public:
|
|
CheckBoxDelegate(QObject *parent = 0);
|
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
|
virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index);
|
|
};
|