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.
qtMultimediaDB/ccheckboxitemdelegate.h

38 lines
660 B
C++

#ifndef CCHECKBOXITEMDELEGATE_H
#define CCHECKBOXITEMDELEGATE_H
#include <QStyledItemDelegate>
/*!
\brief
\class cCheckBoxItemDelegate ccheckboxitemdelegate.h "ccheckboxitemdelegate.h"
*/
class cCheckBoxItemDelegate : public QStyledItemDelegate
{
public:
protected:
/*!
\brief
\fn paint
\param painter
\param option
\param index
*/
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
/*!
\brief
\fn sizeHint
\param option
\param index
\return QSize
*/
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};
#endif // CCHECKBOXITEMDELEGATE_H