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;
~DiagramImageItem() override
DiagramImageItem::~DiagramImageItem Destructor.
QRectF boundingRect() const override
DiagramImageItem::boundingRect the outer bounds of the item as a rectangle, if no pixmap are set...
DiagramImageItem(QetGraphicsItem *=nullptr)
DiagramImageItem::DiagramImageItem Constructor without pixmap.
virtual bool fromXml(const QDomElement &)
DiagramImageItem::fromXml Load this image fro xml elemebt .
virtual QDomElement toXml(QDomDocument &) const
QString name() const override
DiagramImageItem::name.
void setPixmap(const QPixmap &pixmap)
DiagramImageItem::setPixmap Set the new pixmap to be draw.
int type() const override
void editProperty() override
DiagramImageItem::editProperty Open the approriate dialog to edit this image.
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
DiagramImageItem::paint Draw the pixmap.