25 #ifndef DIGIKAM_REGION_FRAME_ITEM_H
26 #define DIGIKAM_REGION_FRAME_ITEM_H
51 ShowResizeHandles = 1 << 0,
54 GeometryEditable = ShowResizeHandles | MoveByDrag
56 Q_DECLARE_FLAGS(Flags, Flag)
63 void setFlags(Flags flags);
64 void changeFlags(Flags flags,
bool addOrRemove);
73 void setHudWidget(QGraphicsWidget*
const hudWidget);
74 void setHudWidget(QWidget*
const widget, Qt::WindowFlags wFlags = Qt::WindowFlags());
75 QGraphicsWidget* hudWidget()
const;
76 void setHudWidgetVisible(
bool visible);
78 void setFixedRatio(
double ratio);
80 void setRectInSceneCoordinatesAdjusted(
const QRectF& rect);
82 QRectF boundingRect()
const override;
93 void setViewportRect(
const QRectF& rect);
101 void paint(QPainter* painter,
102 const QStyleOptionGraphicsItem* option,
103 QWidget* widget =
nullptr)
override;
104 void mousePressEvent(QGraphicsSceneMouseEvent*)
override;
105 void mouseMoveEvent(QGraphicsSceneMouseEvent*)
override;
106 void mouseReleaseEvent(QGraphicsSceneMouseEvent*)
override;
107 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
108 void hoverMoveEvent(QGraphicsSceneHoverEvent* event)
override;
109 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
111 bool eventFilter(QObject* watched, QEvent* event)
override;
116 void slotSizeChanged();
117 void slotPosChanged();
118 void hudSizeChanged();
119 void moveHudWidget();
134 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::RegionFrameItem::Flags)
Definition: dimgchilditem.h:41
Definition: regionframeitem.h:43
Flag
Definition: regionframeitem.h:49
Definition: datefolderview.cpp:43