QElectroTech
0.70
|
#include <templatevisualcell.h>
Public Slots | |
void | setTemplateCell (TitleBlockTemplate *, TitleBlockCell *) |
TitleBlockTemplate * | titleBlockTemplate () const |
TitleBlockCell * | cell () const |
QSet< TitleBlockCell * > | cells () const |
Public Member Functions | |
TitleBlockTemplateVisualCell (QGraphicsItem *parent=nullptr) | |
~TitleBlockTemplateVisualCell () override | |
void | setGeometry (const QRectF &) override |
QSizeF | sizeHint (Qt::SizeHint, const QSizeF &=QSizeF()) const override |
QRectF | boundingRect () const override |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *=nullptr) override |
Private Member Functions | |
TitleBlockTemplateVisualCell (const TitleBlockTemplateVisualCell &) | |
Private Attributes | |
TitleBlockTemplate * | template_ |
Title block template of the previewed cell. More... | |
TitleBlockCell * | cell_ |
Previewed cell. More... | |
This class implements a preview widget for cells that compose a title block template.
Definition at line 29 of file templatevisualcell.h.
TitleBlockTemplateVisualCell::TitleBlockTemplateVisualCell | ( | QGraphicsItem * | parent = nullptr | ) |
Constructor
parent | Parent QGraphicsItem |
Definition at line 26 of file templatevisualcell.cpp.
|
override |
Destructor
Definition at line 40 of file templatevisualcell.cpp.
|
private |
|
override |
Definition at line 67 of file templatevisualcell.cpp.
|
slot |
Definition at line 117 of file templatevisualcell.cpp.
References cell_.
Referenced by setTemplateCell().
|
slot |
Definition at line 125 of file templatevisualcell.cpp.
|
override |
Handles the helper cell visual rendering
painter | QPainter to be used for the rendering |
option | Rendering options |
widget | QWidget being painted, if any |
Definition at line 77 of file templatevisualcell.cpp.
|
override |
Ensure geometry changes are handled for both QGraphicsObject and QGraphicsLayoutItem.
g | New geometry |
Definition at line 48 of file templatevisualcell.cpp.
|
slot |
Set the previewed title block cell.
tbt | Parent title block template of the previewed cell |
cell | Previewed cell |
Definition at line 102 of file templatevisualcell.cpp.
|
override |
which | Size hint to be modified |
constraint | New value for the size hint |
Definition at line 59 of file templatevisualcell.cpp.
|
slot |
Definition at line 110 of file templatevisualcell.cpp.
References template_.
|
private |
Previewed cell.
Definition at line 53 of file templatevisualcell.h.
Referenced by cell(), cells(), paint(), and setTemplateCell().
|
private |
Title block template of the previewed cell.
Definition at line 52 of file templatevisualcell.h.
Referenced by cells(), paint(), setTemplateCell(), and titleBlockTemplate().