7 #ifndef PDF_FRAME_HANDLE_H 8 #define PDF_FRAME_HANDLE_H 10 #include <QGraphicsRectItem> 25 const QPointF &pointReference,
31 virtual QVariant
itemChange(GraphicsItemChange change,
const QVariant &value);
34 virtual void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
43 int m_orientationFlags;
45 bool m_disableEventsWhileMovingAutomatically;
46 QGraphicsScene &m_scene;
47 QGraphicsView &m_view;
50 #endif // PDF_FRAME_HANDLE_H virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Override the paint method so the dashed-border-when-selected can be removed.
This class shows a frame around the selected portion of the pdf import preview window.
This class acts as a single handle for the PdfCropping class.
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept the drags and process them, which is the whole point of handles.
void setDisableEventsWhileMovingAutomatically(bool disable)
Temporarily disable event handling so code can move this object without triggering a cascade of event...