34 #ifndef SRC_APPS_NRTDESIGNER_CONNECTIONREQUEST_H
35 #define SRC_APPS_NRTDESIGNER_CONNECTIONREQUEST_H
40 NRT_BEGIN_UNCHECKED_INCLUDES
41 #include <QGraphicsLineItem>
42 NRT_END_UNCHECKED_INCLUDES
45 class QGraphicsDropShadowEffect;
56 void recalculateLine();
57 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
62 Port * sourcePort()
const {
return itsSourcePort; }
63 Port * sinkPort()
const {
return itsSinkPort; }
64 Port * originPort()
const {
return itsOriginPort; }
67 QGraphicsDropShadowEffect * makeGlowEffect()
const;
68 QList<Port*> getPotentialPorts(Port * origPort);
72 QPainterPath itsShape;
73 QMap<Port *, QPainterPath> itsPotentialPortPaths;
74 QPainterPath itsBestPath;
77 #endif // SRC_APPS_NRTDESIGNER_CONNECTIONREQUEST_H