#include <templatevisualcell.h>
Inherits QGraphicsLayoutItem, and QGraphicsItem.
This class implements a preview widget for cells that compose a title block template.
◆ TitleBlockTemplateVisualCell() [1/2]
TitleBlockTemplateVisualCell::TitleBlockTemplateVisualCell |
( |
QGraphicsItem * |
parent = nullptr | ) |
|
Constructor
- Parameters
-
parent | Parent QGraphicsItem |
◆ ~TitleBlockTemplateVisualCell()
TitleBlockTemplateVisualCell::~TitleBlockTemplateVisualCell |
( |
| ) |
|
|
override |
◆ TitleBlockTemplateVisualCell() [2/2]
◆ boundingRect()
QRectF TitleBlockTemplateVisualCell::boundingRect |
( |
| ) |
const |
|
override |
- Returns
- the bounding rect of this helper cell
◆ cell
- Returns
- the previewed title block cell
◆ cells
QSet< TitleBlockCell * > TitleBlockTemplateVisualCell::cells |
( |
| ) |
const |
|
slot |
- Returns
- the title block cell previewed by this object, plus the cells it spans over, if any
◆ paint()
void TitleBlockTemplateVisualCell::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
override |
Handles the helper cell visual rendering
- Parameters
-
painter | QPainter to be used for the rendering |
option | Rendering options |
widget | QWidget being painted, if any |
◆ setGeometry()
void TitleBlockTemplateVisualCell::setGeometry |
( |
const QRectF & |
g | ) |
|
|
override |
Ensure geometry changes are handled for both QGraphicsObject and QGraphicsLayoutItem.
- Parameters
-
◆ setTemplateCell
Set the previewed title block cell.
- Parameters
-
tbt | Parent title block template of the previewed cell |
cell | Previewed cell |
◆ sizeHint()
QSizeF TitleBlockTemplateVisualCell::sizeHint |
( |
Qt::SizeHint |
which, |
|
|
const QSizeF & |
constraint = QSizeF() |
|
) |
| const |
|
override |
- Parameters
-
which | Size hint to be modified |
constraint | New value for the size hint |
- Returns
- the size hint for which using the width or height of constraint
◆ titleBlockTemplate
- Returns
- the parent title block template of the previewed cell
◆ cell_
◆ template_
Title block template of the previewed cell.
The documentation for this class was generated from the following files: