14class QGraphicsRectItem;
35 void moveBL (
const QPointF &newPos,
36 const QPointF &oldPos);
39 void moveBR (
const QPointF &newPos,
40 const QPointF &oldPos);
43 void moveTL (
const QPointF &newPos,
44 const QPointF &oldPos);
47 void moveTR (
const QPointF &newPos,
48 const QPointF &oldPos);
61 void createWidgets (QGraphicsScene &scene);
62 void disableEventsWhileMovingAutomatically();
63 void enableEventsWhileMovingAutomatically();
64 QRectF rectFromTLAndBR ()
const;
70 QGraphicsRectItem *m_box;
void moveBL(const QPointF &newPos, const QPointF &oldPos)
Bottom left corner handle was moved.
static const int PDF_CROPPING_LEFT
Bit flag when handle is aligned with left edge at reference point.
PdfCropping(QGraphicsScene &scene, ViewPreview &view)
Single constructor.
static const int PDF_CROPPING_BOTTOM
Bit flag when handle is aligned with bottom edge at reference point.
QSize windowSize() const
Size of window in scene coordinates.
static const int PDF_CROPPING_TOP
Bit flag when handle is aligned with top edge at reference point.
void moveTL(const QPointF &newPos, const QPointF &oldPos)
Top left corner handle was moved.
void moveTR(const QPointF &newPos, const QPointF &oldPos)
Top right corner handle was moved.
void moveBR(const QPointF &newPos, const QPointF &oldPos)
Bottom right corner handle was moved.
QRectF frameRect() const
Frame rectangle selected by user.
static const int PDF_CROPPING_RIGHT
Bit flag when handle is aligned with right edge at reference point.
This class acts as a single handle for the PdfCropping class.
Class that modifies QGraphicsView to automatically expand/shrink the view to fit the window,...