1 #ifndef ABSTRACT_ITEM_INPUT_OUTPUT_BASE_H 2 #define ABSTRACT_ITEM_INPUT_OUTPUT_BASE_H 4 #include <QGraphicsObject> 35 int transportType()
const;
47 virtual QObject* data()
const = 0;
55 virtual QPointF localPosition()
const;
63 virtual QPointF scenePosition()
const;
66 virtual void paint(QPainter* painter, QStyleOptionGraphicsItem
const* option, QWidget* widget);
73 virtual bool isConnected()
const = 0;
82 void setLocalPosition(QPointF
const& position);
90 void updateScenePosition();
99 void positionChanged();
102 QScopedPointer<class AbstractItemInputOutputBasePrivate>
const d_ptr;
106 #endif // ABSTRACT_ITEM_INPUT_OUTPUT_BASE_H Definition: abstract_item_p.h:17
QPainterPath shape() const override
Returns the graphical shape of the item's image.
Definition: abstract_item.cpp:410
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
Paints the contents of the item.
Definition: abstract_item.cpp:556
QRectF boundingRect() const override
Returns the bounding box of the item.
Definition: abstract_item.cpp:402
QString description() const
Definition: abstract_item.cpp:183
The AbstractItem class is the base class for all items.
Definition: abstract_item.h:69