Inherited from QStyledItemDelegate, it defines the look and functionality of CanvasPhotoWidget.
More...
#include <ListDelegate.h>
|
| CanvasDelegate (QObject *parent=0) |
|
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
|
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
|
QRect | getButtonDeleteRect (const QRect &rect) const |
|
QRect | getButtonVisibilityRect (const QRect &rect) const |
|
QRect | getButtonPlusRect (const QRect &rect) const |
|
QRect | getButtonMinusRect (const QRect &rect) const |
|
Inherited from QStyledItemDelegate, it defines the look and functionality of CanvasPhotoWidget.
§ CanvasDelegate()
CanvasDelegate::CanvasDelegate |
( |
QObject * |
parent = 0 | ) |
|
§ clickedDelete
void CanvasDelegate::clickedDelete |
( |
const QModelIndex & |
index | ) |
|
|
signal |
Signal which is emitted whenver the user presses delete button of the corresponding canvas.
§ clickedDeletePhoto
void CanvasDelegate::clickedDeletePhoto |
( |
const QModelIndex & |
index | ) |
|
|
signal |
Signal which is emitted whenver the user presses delete button of the corresponding canvas' photo.
§ clickedTransparencyMinus
void CanvasDelegate::clickedTransparencyMinus |
( |
const QModelIndex & |
index | ) |
|
|
signal |
Signal which is emitted whenver the user decreases transparency of corresponding photo.
§ clickedTransparencyPlus
void CanvasDelegate::clickedTransparencyPlus |
( |
const QModelIndex & |
index | ) |
|
|
signal |
Signal which is emitted whenver the user increases transparency of corresponding photo.
§ clickedVisibilitySet
void CanvasDelegate::clickedVisibilitySet |
( |
int |
index | ) |
|
|
signal |
Signal which is emitted whenver the user changes the visibility of the corresponding canvas.
§ editorEvent()
bool CanvasDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
Re-defined method that provides functionality within the widget.
§ paint()
void CanvasDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Re-defined method that describes how to place elements within the widget.
§ sizeHint()
QSize CanvasDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
virtual |
Re-defined method that makes sure the consistency of widget item height across different DPIs.
The documentation for this class was generated from the following files: