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

Method centerView

ui/remoteviewwidget.cpp:502–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void RemoteViewWidget::centerView()
503{
504 m_x = 0.5 * (contentWidth() - m_frame.sceneRect().width() * m_zoom);
505 m_y = 0.5 * (contentHeight() - m_frame.sceneRect().height() * m_zoom);
506 updateUserViewport();
507 update();
508}
509
510QAbstractItemModel *RemoteViewWidget::zoomLevelModel() const
511{

Callers

nothing calls this directly

Calls 1

sceneRectMethod · 0.80

Tested by

no test coverage detected