Marble

MergeItem.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2013 Utku Aydın <utkuaydin34@gmail.com>
4//
5
6#include "MergeItem.h"
7
8namespace Marble
9{
10
11MergeItem::MergeItem() = default;
12
13QString MergeItem::pathA() const
14{
15 return m_pathA;
16}
17
18void MergeItem::setPathA(const QString &path)
19{
20 m_pathA = path;
21 Q_EMIT pathAChanged();
22}
23
24QString MergeItem::pathB() const
25{
26 return m_pathB;
27}
28
29void MergeItem::setPathB(const QString &path)
30{
31 m_pathB = path;
32 Q_EMIT pathBChanged();
33}
34
35GeoDataPlacemark MergeItem::placemarkA() const
36{
37 return m_placemarkA;
38}
39
40void MergeItem::setPlacemarkA(const GeoDataPlacemark &placemark)
41{
42 m_placemarkA = placemark;
43 Q_EMIT placemarkAChanged();
44 Q_EMIT nameAChanged();
45 Q_EMIT descriptionAChanged();
46}
47
48GeoDataPlacemark MergeItem::placemarkB() const
49{
50 return m_placemarkB;
51}
52
53void MergeItem::setPlacemarkB(const GeoDataPlacemark &placemark)
54{
55 m_placemarkB = placemark;
56 Q_EMIT placemarkBChanged();
57 Q_EMIT nameBChanged();
58 Q_EMIT descriptionBChanged();
59}
60
61QString MergeItem::nameA() const
62{
63 return m_placemarkA.name();
64}
65
66QString MergeItem::nameB() const
67{
68 return m_placemarkB.name();
69}
70
71QString MergeItem::descriptionA() const
72{
73 return m_placemarkA.description();
74}
75
76QString MergeItem::descriptionB() const
77{
78 return m_placemarkB.description();
79}
80
81MergeItem::Action MergeItem::actionA() const
82{
83 return m_actionA;
84}
85
86void MergeItem::setActionA(MergeItem::Action action)
87{
88 m_actionA = action;
89}
90
91MergeItem::Action MergeItem::actionB() const
92{
93 return m_actionB;
94}
95
96void MergeItem::setActionB(MergeItem::Action action)
97{
98 m_actionB = action;
99}
100
101MergeItem::Resolution MergeItem::resolution() const
102{
103 return m_resolution;
104}
105
106void MergeItem::setResolution(MergeItem::Resolution resolution)
107{
108 m_resolution = resolution;
109 Q_EMIT resolutionChanged();
110}
111
112}
113
114#include "moc_MergeItem.cpp"
QString description() const
Return the text description of the feature.
QString name() const
The name of the feature.
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.