7#ifndef NON_PDF_FRAME_HANDLE_H
8#define NON_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;
This class shows a frame around the selected portion of the import preview window.
NonPdfFrameHandle(QGraphicsScene &scene, QGraphicsView &view, const QPointF &pointReference, int orientationFlags, NonPdfCropping &nonPdfCropping, int zValue)
Single constructor.
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Intercept the drags and process them, which is the whole point of handles.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Override the paint method so the dashed-border-when-selected can be removed.
void setDisableEventsWhileMovingAutomatically(bool disable)
Temporarily disable event handling so code can move this object without triggering a cascade of event...