18 #ifndef DIAGRAMEVENTADDIMAGE_H 19 #define DIAGRAMEVENTADDIMAGE_H 41 void wheelEvent (QGraphicsSceneWheelEvent *event)
override;
51 #endif // DIAGRAMEVENTADDIMAGE_H void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mouseMoveEvent Action when mouse move.
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mousePressEvent Action when mouse is pressed.
~DiagramEventAddImage() override
DiagramEventAddImage::~DiagramEventAddImage.
void openDialog()
DiagramEventAddImage::openDialog Open dialog for select the image to add.
DiagramEventAddImage(Diagram *diagram)
DiagramEventAddImage::DiagramEventAddImage Default constructor.
bool isNull() const
DiagramEventAddImage::isNull.
The DiagramEventAddImage class This diagram event, handle the adding of an image in a diagram...
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
DiagramEventAddImage::mouseDoubleClickEvent This method is only use to overwrite double click...
DiagramImageItem * m_image
The DiagramEventInterface class isRunning() return true if action is running (do something). By default return false.
void wheelEvent(QGraphicsSceneWheelEvent *event) override
DiagramEventAddImage::wheelEvent Action when mouse wheel is rotate.