class for displaying single profile comment in a list view
More...
#include <profilecommentitemdelegate.h>
|
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
class for displaying single profile comment in a list view
◆ ProfileCommentItemDelegate()
ProfileCommentItemDelegate::ProfileCommentItemDelegate |
( |
ProfileCommentListingModel & |
aListingModel, |
|
|
const QWidget & |
aDrawableWidget, |
|
|
QObject * |
aParent = NULL |
|
) |
| |
Constructor
- Parameters
-
aListingModel | is the datamodel part where content comes from |
aDrawableWidget | is the container where these items will be drawn. It is passed here because we want to query its dimensions at runtime. |
aParent | possible parent item |
◆ ~ProfileCommentItemDelegate()
ProfileCommentItemDelegate::~ProfileCommentItemDelegate |
( |
| ) |
|
◆ paint()
void ProfileCommentItemDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protected |
implemented from class QStyledItemDelegate
◆ sizeHint()
QSize ProfileCommentItemDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protected |
implemented from class QStyledItemDelegate
◆ iDrawableWidget
const QWidget& ProfileCommentItemDelegate::iDrawableWidget |
|
private |
◆ iListingModel
The documentation for this class was generated from the following file: