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 |
( |
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 |
( |
| ) |
|
void ProfileCommentItemDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protected |
implemented from class QStyledItemDelegate
QSize ProfileCommentItemDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
protected |
implemented from class QStyledItemDelegate
const QWidget& ProfileCommentItemDelegate::iDrawableWidget |
|
private |
The documentation for this class was generated from the following file: