| 654 | } |
| 655 | |
| 656 | void 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 | |
| 682 | void MoveAndZoomableView::setZoomFactor(double zoom) |
| 683 | { |
no test coverage detected