MCPcopy Create free account
hub / github.com/KDAB/GammaRay / viewRect

Method viewRect

common/remoteviewframe.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24QRectF RemoteViewFrame::viewRect() const
25{
26 if (m_viewRect.isValid())
27 return m_viewRect;
28 qreal pxRatio = 1.0;
29 pxRatio = m_image.image().devicePixelRatio();
30 return QRect(QPoint(), m_image.image().size() / pxRatio);
31}
32
33void RemoteViewFrame::setViewRect(const QRectF &viewRect)
34{

Callers 10

sendFrameMethod · 0.80
QuickTextureTestClass · 0.80
testDFGrabMethod · 0.80
updateUserViewportMethod · 0.80
hasValidCompleteFrameMethod · 0.80
drawBackgroundMethod · 0.80
drawRulerMethod · 0.80
viewTickLabelDistanceMethod · 0.80
renderDecorationMethod · 0.80

Calls 5

QRectClass · 0.85
QPointClass · 0.85
isValidMethod · 0.45
imageMethod · 0.45
sizeMethod · 0.45

Tested by 2

testDFGrabMethod · 0.64