| 784 | } |
| 785 | |
| 786 | void 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 | |
| 806 | void MoveAndZoomableView::slaveSetLinkState(bool enabled) |
| 807 | { |
nothing calls this directly
no test coverage detected