| 401 | } |
| 402 | |
| 403 | void ReferenceRangePrivate::updatePositionLimit() { |
| 404 | switch (orientation) { |
| 405 | case WorksheetElement::Orientation::Horizontal: |
| 406 | position.positionLimit = WorksheetElement::PositionLimit::Y; |
| 407 | break; |
| 408 | case WorksheetElement::Orientation::Vertical: |
| 409 | position.positionLimit = WorksheetElement::PositionLimit::X; |
| 410 | break; |
| 411 | case WorksheetElement::Orientation::Both: |
| 412 | position.positionLimit = WorksheetElement::PositionLimit::None; |
| 413 | break; |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | /*! |
| 418 | * called when the user moves the graphics item with the mouse and the scene position of the item is changed. |