MCPcopy Create free account
hub / github.com/IENT/YUView / update

Method update

YUViewLib/src/ui/views/MoveAndZoomableView.cpp:656–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void MoveAndZoomableView::update()
657{
658 if (this->enableLink)
659 {
660 if (isMasterView)
661 {
662 for (auto v : this->slaveViews)
663 v->slaveUpdateWidget();
664
665 DEBUG_VIEW("MoveAndZoomableView::update master");
666 QWidget::update();
667 }
668 else
669 {
670 assert(this->masterView);
671 DEBUG_VIEW("MoveAndZoomableView::update forward update to master");
672 this->masterView->update();
673 }
674 }
675 else // !this->enableLink
676 {
677 DEBUG_VIEW("MoveAndZoomableView::update link off");
678 QWidget::update();
679 }
680}
681
682void MoveAndZoomableView::setZoomFactor(double zoom)
683{

Callers 5

zoomMethod · 0.95
resizeEventMethod · 0.95
mouseMoveEventMethod · 0.95
mouseReleaseEventMethod · 0.95
eventMethod · 0.95

Calls 1

slaveUpdateWidgetMethod · 0.80

Tested by

no test coverage detected