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

Method resizeEvent

YACReader/viewer.cpp:874–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874void Viewer::resizeEvent(QResizeEvent *event)
875{
876 QScrollArea::resizeEvent(event);
877
878 if (continuousScroll) {
879 continuousViewModel->setViewportSize(viewport()->width(), viewport()->height());
880 }
881
882 updateContentSize();
883 goToFlow->updateSize();
884 goToFlow->move((width() - goToFlow->width()) / 2, height() - goToFlow->height());
885 informationLabel->updatePosition();
886}
887
888QPixmap Viewer::pixmap() const
889{

Callers

nothing calls this directly

Calls 3

setViewportSizeMethod · 0.80
updateSizeMethod · 0.80
updatePositionMethod · 0.45

Tested by

no test coverage detected