Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/declarative/Placemark.cpp
Show First 20 Lines • Show All 570 Lines • ▼ Show 20 Line(s) | 570 | { | |||
---|---|---|---|---|---|
571 | if (m_placemark.displayName() == name) { | 571 | if (m_placemark.displayName() == name) { | ||
572 | return; | 572 | return; | ||
573 | } | 573 | } | ||
574 | 574 | | |||
575 | m_placemark.setName(name); | 575 | m_placemark.setName(name); | ||
576 | emit nameChanged(); | 576 | emit nameChanged(); | ||
577 | } | 577 | } | ||
578 | 578 | | |||
579 | void Placemark::setRelations(const QVector<const Marble::GeoDataRelation*> &relations) | ||||
580 | { | ||||
581 | m_relationModel.setRelations(relations); | ||||
582 | emit relationModelChanged(); | ||||
583 | } | ||||
584 | | ||||
585 | RouteRelationModel* Placemark::relationModel() | ||||
586 | { | ||||
587 | return &m_relationModel; | ||||
588 | } | ||||
589 | | ||||
579 | double Placemark::longitude() const | 590 | double Placemark::longitude() const | ||
580 | { | 591 | { | ||
581 | return m_placemark.coordinate().longitude(GeoDataCoordinates::Degree); | 592 | return m_placemark.coordinate().longitude(GeoDataCoordinates::Degree); | ||
582 | } | 593 | } | ||
583 | 594 | | |||
584 | double Placemark::latitude() const | 595 | double Placemark::latitude() const | ||
585 | { | 596 | { | ||
586 | return m_placemark.coordinate().latitude(GeoDataCoordinates::Degree); | 597 | return m_placemark.coordinate().latitude(GeoDataCoordinates::Degree); | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |