7#include <QGraphicsPixmapItem>
8#include <QGraphicsScene>
15 QGraphicsView (scene,
parent),
31 QGraphicsView::mouseMoveEvent (
event);
47 for (
int i = 0;
i < scene()->items().count ();
i++) {
61 QGraphicsView::resizeEvent (
event);
const int INNER_RADIUS_MIN
ViewAspectRatio
Prevent aspect ratio distortion in certain previews by providing fixed 1:1 aspect ratio option.
@ VIEW_ASPECT_RATIO_ONE_TO_ONE
virtual void wheelEvent(QWheelEvent *event)
Intercept wheel event and discard it so accidentally moving the wheel does not move drawn items out o...
virtual void resizeEvent(QResizeEvent *event)
Intercept resize events so we can rescale to the graphics items just fit into the resized window.
virtual void mouseMoveEvent(QMouseEvent *event)
Intercept cursor move events and forward them.
void signalMouseMove(QPointF pos)
Forward the mouse move events.
ViewPreview(QGraphicsScene *scene, ViewAspectRatio viewAspectRatio, QWidget *parent=0)
Single constructor.