26 #include "../core/system/eptexception.h"
38 QGraphicsItem *item) :
91 QPointF pos(static_cast<GraphicsViewAdapterForQt*>(
mGraphicsView)->
92 convertRelToAbs(QPointF(x, y)));
GraphicsItemForQt(GraphicsViewAdapter *graphicsView, QGraphicsItem *item)
Constructor, initializing the pointer mItem.
QGraphicsItem * mItem
Pointer pointing to the QGraphicsItem.
void setItem(QGraphicsItem *item)
Set the associated QGraphicsItem pointer.
virtual void setZOrder(double z) overridefinal
Set or change the z-order of the graphical item.
~GraphicsItemForQt()
Destructor, deletes the item and sets mItem to nullptr.
virtual void setPosition(double x, double y) overridefinal
Set or change the position of the graphical item.
GraphicsViewAdapter * mGraphicsView
Pointer to the parent GraphicsViewAdapter.
Abstract base class for implementations rendering graphics.
Class for a single item in a graphics view.