32 QGraphicsView(parent),
33 graphicsViewZoomer(NULL)
42 graphicsViewZoomer = zoomer;
43 connect(graphicsViewZoomer, SIGNAL(moved()),
this, SLOT(
retrieveUpdate()));
44 connect(graphicsViewZoomer, SIGNAL(zoomed()),
this, SLOT(
retrieveUpdate()));
49 if (!graphicsViewZoomer || !graphicsViewZoomer->
getView())
54 selectionRect = graphicsViewZoomer->
getView()->mapToScene(graphicsViewZoomer->
getView()->rect()).boundingRect();
58 fitInView(scene()->itemsBoundingRect().adjusted(-30, -30, 30, 30), Qt::KeepAspectRatio);
74 painter->drawRect(selectionRect);
75 QGraphicsView::drawForeground(painter, rect);