MCPcopy Create free account
hub / github.com/YACReader/yacreader / setCurrentPage

Method setCurrentPage

YACReader/continuous_view_model.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void ContinuousViewModel::setCurrentPage(int page)
73{
74 if (page < 0 || page >= numPagesValue) {
75 return;
76 }
77
78 anchorPage = page;
79 recompute(RecomputePolicy::ScrollToPageTop, page);
80}
81
82void ContinuousViewModel::setPageNaturalSize(int pageIndex, const QSize &size)
83{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected