#include <qcalcGraphicElements.h>
Public Types | |
enum | { Type = TYPE_TIMECONNECTOR } |
Public Member Functions | |
Connector (OutSlot *from, InSlot *to=NULL, const QPointF &toPos=QPointF(), QGraphicsItem *parent=NULL) | |
virtual | ~Connector () |
void | updatePosition () |
void | setEnd (const QPointF &toPos) |
void | setEnd (InSlot *to) |
OutSlot * | getFromSlot () |
InSlot * | getToSlot () |
QRectF | boundingRect () const |
QPainterPath | shape () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=NULL) |
virtual int | type () const |
Protected Attributes | |
QPointF | fromPos |
QPointF | toPos |
OutSlot * | from |
InSlot * | to |
QPolygonF | arrowHead |
Connector::Connector | ( | OutSlot * | from, | |
InSlot * | to = NULL , |
|||
const QPointF & | toPos = QPointF() , |
|||
QGraphicsItem * | parent = NULL | |||
) |
Connector::~Connector | ( | ) | [virtual] |
QRectF Connector::boundingRect | ( | ) | const |
OutSlot* Connector::getFromSlot | ( | ) | [inline] |
InSlot* Connector::getToSlot | ( | ) | [inline] |
void Connector::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget = NULL | |||
) | [virtual] |
void Connector::setEnd | ( | InSlot * | to | ) |
void Connector::setEnd | ( | const QPointF & | toPos | ) |
QPainterPath Connector::shape | ( | ) | const |
virtual int Connector::type | ( | ) | const [inline, virtual] |
void Connector::updatePosition | ( | ) |
QPolygonF Connector::arrowHead [protected] |
OutSlot* Connector::from [protected] |
QPointF Connector::fromPos [protected] |
InSlot* Connector::to [protected] |
QPointF Connector::toPos [protected] |