| 1051 | } |
| 1052 | |
| 1053 | void splitViewWidget::setMoveOffset(QPointF offset) |
| 1054 | { |
| 1055 | MoveAndZoomableView::setMoveOffset(offset); |
| 1056 | |
| 1057 | if (this->isMasterView) |
| 1058 | { |
| 1059 | // Save the center offset in the currently selected item |
| 1060 | auto item = playlist->getSelectedItems(); |
| 1061 | for (int i = 0; i < 2; i++) |
| 1062 | { |
| 1063 | if (item[i]) |
| 1064 | { |
| 1065 | DEBUG_LOAD_DRAW("splitViewWidget::setMoveOffset item " << item[i]->properties().id << " (" |
| 1066 | << offset.x() << "," << offset.y() |
| 1067 | << ")"); |
| 1068 | item[i]->saveCenterOffset(this->moveOffset, !isMasterView); |
| 1069 | item[i]->saveCenterOffset(this->getOtherWidget()->moveOffset, isMasterView); |
| 1070 | } |
| 1071 | } |
| 1072 | } |
| 1073 | } |
| 1074 | |
| 1075 | QPoint splitViewWidget::getMoveOffsetCoordinateSystemOrigin(const QPointF zoomPoint) const |
| 1076 | { |
no test coverage detected