| 460 | } |
| 461 | |
| 462 | void Legend::setFloatingPosition(const RelativePosition &relativePosition) |
| 463 | { |
| 464 | d->position = Position::Floating; |
| 465 | if (d->relativePosition != relativePosition) { |
| 466 | d->relativePosition = relativePosition; |
| 467 | emitPositionChanged(); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | const RelativePosition Legend::floatingPosition() const |
| 472 | { |