24 #ifndef DIGIKAM_DIMG_CHILD_ITEM_H
25 #define DIGIKAM_DIMG_CHILD_ITEM_H
29 #include <QGraphicsObject>
38 class GraphicsDImgItem;
53 explicit DImgChildItem(QGraphicsItem*
const parent =
nullptr);
60 void setRelativePos(
const QPointF& relativePosition);
63 setRelativePos(QPointF(x, y));
66 void setRelativeSize(
const QSizeF& relativeSize);
69 setRelativeSize(QSizeF(width, height));
72 void setRelativeRect(
const QRectF& rect);
75 setRelativeRect(QRectF(x, y, width, height));
82 QRectF relativeRect()
const;
83 QPointF relativePos()
const;
84 QSizeF relativeSize()
const;
91 void setOriginalPos(
const QPointF& posInOriginal);
94 setOriginalPos(QPointF(x, y));
97 void setOriginalSize(
const QSizeF& sizeInOriginal);
100 setOriginalSize(QSizeF(width, height));
103 void setOriginalRect(
const QRectF& rect);
106 setOriginalRect(QRectF(x, y,width, height));
115 QRect originalRect()
const;
116 QPoint originalPos()
const;
117 QSize originalSize()
const;
124 void setPos(
const QPointF& zoomedPos);
127 setPos(QPointF(x, y));
130 void setSize(
const QSizeF& zoomedSize);
133 setSize(QSizeF(width, height));
136 void setRect(
const QRectF& rect);
137 void setRect(qreal x, qreal y, qreal width, qreal height)
139 setPos(QPointF(x,y));
140 setSize(QSizeF(width, height));
146 void setRectInSceneCoordinates(
const QRectF& rect);
159 setPos(pos().x() + dx, pos().y() + dy);
172 QRectF boundingRect()
const override;
176 void imageSizeChanged(
const QSizeF&);
200 QVariant itemChange(GraphicsItemChange change,
201 const QVariant&
value)
override;
Definition: dimgchilditem.h:41
void setRelativeRect(qreal x, qreal y, qreal width, qreal height)
Definition: dimgchilditem.h:73
void setPos(qreal x, qreal y)
Definition: dimgchilditem.h:125
void sizeOnImageChanged()
void setSize(qreal width, qreal height)
Definition: dimgchilditem.h:131
void setOriginalSize(qreal width, qreal height)
Definition: dimgchilditem.h:98
void setRelativeSize(qreal width, qreal height)
Definition: dimgchilditem.h:67
void setOriginalPos(qreal x, qreal y)
Definition: dimgchilditem.h:92
void setOriginalRect(qreal x, qreal y, qreal width, qreal height)
Definition: dimgchilditem.h:104
void moveBy(qreal dx, qreal dy)
Definition: dimgchilditem.h:157
void setRect(qreal x, qreal y, qreal width, qreal height)
Definition: dimgchilditem.h:137
void positionOnImageChanged()
void setRelativePos(qreal x, qreal y)
Definition: dimgchilditem.h:61
void geometryOnImageChanged()
Definition: dimgitems_p.h:75
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43