18#ifndef DIAGRAM_IMAGE_ITEM_H
19#define DIAGRAM_IMAGE_ITEM_H
42 enum {
Type = UserType + 1007 };
53 virtual bool fromXml(
const QDomElement &);
54 virtual QDomElement
toXml(QDomDocument &)
const;
58 QString
name()
const override;
61 void paint(QPainter *,
const QStyleOptionGraphicsItem *, QWidget *)
override;
Definition diagramimageitem.h:31
@ Type
Definition diagramimageitem.h:42
virtual bool fromXml(const QDomElement &)
DiagramImageItem::fromXml Load this image from xml element e.
Definition diagramimageitem.cpp:136
void setPixmap(const QPixmap &pixmap)
DiagramImageItem::setPixmap Set the new pixmap to be draw.
Definition diagramimageitem.cpp:100
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
DiagramImageItem::paint Draw the pixmap.
Definition diagramimageitem.cpp:64
QString name() const override
DiagramImageItem::name.
Definition diagramimageitem.cpp:125
void editProperty() override
DiagramImageItem::editProperty Open the appropriate dialog to edit this image.
Definition diagramimageitem.cpp:88
int type() const override
Definition diagramimageitem.h:51
virtual QDomElement toXml(QDomDocument &) const
Definition diagramimageitem.cpp:170
QRectF boundingRect() const override
DiagramImageItem::boundingRect the outer bounds of the item as a rectangle, if no pixmap are set,...
Definition diagramimageitem.cpp:111
~DiagramImageItem() override
DiagramImageItem::~DiagramImageItem Destructor.
Definition diagramimageitem.cpp:53
QPixmap pixmap_
Definition diagramimageitem.h:64
Definition qetgraphicsitem.h:28