|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
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: qetgraphicsitem.h:27
Diagram * diagram() const
Definition: qetgraphicsitem.cpp:40
~DiagramImageItem() override
DiagramImageItem::~DiagramImageItem Destructor.
Definition: diagramimageitem.cpp:52
int type() const override
Definition: diagramimageitem.h:51
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override
DiagramImageItem::paint Draw the pixmap.
Definition: diagramimageitem.cpp:62
void setPixmap(const QPixmap &pixmap)
DiagramImageItem::setPixmap Set the new pixmap to be draw.
Definition: diagramimageitem.cpp:98
Definition: diagramimageitem.h:31
QString name() const override
DiagramImageItem::name.
Definition: diagramimageitem.cpp:122
QRectF boundingRect() const override
DiagramImageItem::boundingRect the outer bounds of the item as a rectangle, if no pixmap are set,...
Definition: diagramimageitem.cpp:109
qreal correctAngle(const qreal &)
Definition: qet.cpp:545
virtual bool fromXml(const QDomElement &)
DiagramImageItem::fromXml Load this image fro xml elemebt e.
Definition: diagramimageitem.cpp:132
bool is_movable_
Definition: qetgraphicsitem.h:56
QPixmap pixmap_
Definition: diagramimageitem.h:64
DiagramImageItem(QetGraphicsItem *=nullptr)
DiagramImageItem::DiagramImageItem Constructor without pixmap.
Definition: diagramimageitem.cpp:28
virtual QDomElement toXml(QDomDocument &) const
Definition: diagramimageitem.cpp:166
The PropertiesEditorDialog class Create a dialog to edit some properties of a thing....
Definition: propertieseditordialog.h:42
@ Type
Definition: diagramimageitem.h:42
void editProperty() override
DiagramImageItem::editProperty Open the approriate dialog to edit this image.
Definition: diagramimageitem.cpp:86
QIcon tr
Definition: qeticons.cpp:206