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

Method setLinkState

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

Source from the content-addressed store, hash-verified

784}
785
786void MoveAndZoomableView::setLinkState(bool enabled)
787{
788 if (this->isMasterView)
789 {
790 for (auto v : this->slaveViews)
791 v->slaveSetLinkState(enabled);
792
793 DEBUG_VIEW("MoveAndZoomableView::setLinkState master set link state " << enabled);
794 this->updateLinkedViews = true;
795 this->enableLink = enabled;
796 }
797 else
798 {
799 Q_ASSERT_X(this->masterView, Q_FUNC_INFO, "Master not set for slave");
800 DEBUG_VIEW("MoveAndZoomableView::setLinkState slave send link state " << enabled
801 << " to master");
802 this->masterView->setLinkState(enabled);
803 }
804}
805
806void MoveAndZoomableView::slaveSetLinkState(bool enabled)
807{

Callers

nothing calls this directly

Calls 1

slaveSetLinkStateMethod · 0.80

Tested by

no test coverage detected