MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / zoomRestore

Method zoomRestore

src/board/UBBoardController.cpp:1034–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032
1033
1034void UBBoardController::zoomRestore()
1035{
1036 QTransform tr;
1037
1038 tr.scale(mSystemScaleFactor, mSystemScaleFactor);
1039 mControlView->setTransform(tr);
1040
1041 centerRestore();
1042
1043 emit zoomChanged(1.0);
1044
1045 emit controlViewportChanged();
1046 mActiveScene->setBackgroundZoomFactor(mControlView->transform().m11());
1047}
1048
1049
1050void UBBoardController::centerRestore()

Callers 4

zoomButtonReleasedMethod · 0.80
keyPressEventMethod · 0.80
goHundredMethod · 0.80
keyPressEventMethod · 0.80

Calls 1

Tested by

no test coverage detected