| 272 | } |
| 273 | |
| 274 | void ReferenceLinePrivate::updatePositionLimit() { |
| 275 | switch (orientation) { |
| 276 | case WorksheetElement::Orientation::Horizontal: |
| 277 | position.positionLimit = WorksheetElement::PositionLimit::Y; |
| 278 | break; |
| 279 | case WorksheetElement::Orientation::Vertical: |
| 280 | position.positionLimit = WorksheetElement::PositionLimit::X; |
| 281 | break; |
| 282 | case WorksheetElement::Orientation::Both: |
| 283 | position.positionLimit = WorksheetElement::PositionLimit::None; |
| 284 | break; |
| 285 | } |
| 286 | } |
| 287 | /*! |
| 288 | recalculates the outer bounds and the shape of the item. |
| 289 | */ |