MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / updateRuler

Method updateRuler

static_libs/graphicsview/graphicsview.cpp:342–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void GraphicsView::updateRuler()
343{
344 // layout()->setContentsMargins(0, 0, 0, horizontalScrollBar()->isVisible() ? horizontalScrollBar()->height() : 0);
345 updateSceneRect(QRectF()); //actualize mapFromScene
346 QPoint p = mapFromScene(QPointF());
347 vRuler->SetOrigin(p.y());
348 hRuler->SetOrigin(p.x());
349 vRuler->SetRulerZoom(qAbs(transform().m22() * 0.1));
350 hRuler->SetRulerZoom(qAbs(transform().m11() * 0.1));
351}
352
353void GraphicsView::dragEnterEvent(QDragEnterEvent* event)
354{

Callers

nothing calls this directly

Calls 4

SetOriginMethod · 0.80
yMethod · 0.80
xMethod · 0.80
SetRulerZoomMethod · 0.80

Tested by

no test coverage detected