40 graphicsViewZoomer = zoomer;
41 connect(graphicsViewZoomer, SIGNAL(moved()),
this, SLOT(
retrieveUpdate()));
42 connect(graphicsViewZoomer, SIGNAL(zoomed()),
this, SLOT(
retrieveUpdate()));
48 if (!graphicsViewZoomer || !graphicsViewZoomer->
getView())
53 selectionRect = graphicsViewZoomer->
getView()
54 ->mapToScene(graphicsViewZoomer->
getView()->rect())
59 fitInView(scene()->itemsBoundingRect().adjusted(-30, -30, 30, 30), Qt::KeepAspectRatio);
73 painter->drawRect(selectionRect);
74 QGraphicsView::drawForeground(painter, rect);