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
8
9namespace Marble {
10
11MergeItem::MergeItem()
12{
13}
14
15QString MergeItem::pathA() const
16{
17 return m_pathA;
18}
19
20void MergeItem::setPathA( const QString &path )
21{
22 m_pathA = path;
23 emit pathAChanged();
24}
25
26QString MergeItem::pathB() const
27{
28 return m_pathB;
29}
30
31void MergeItem::setPathB( const QString &path )
32{
33 m_pathB = path;
34 emit pathBChanged();
35}
36
37GeoDataPlacemark MergeItem::placemarkA() const
38{
39 return m_placemarkA;
40}
41
42void MergeItem::setPlacemarkA( const GeoDataPlacemark &placemark )
43{
44 m_placemarkA = placemark;
45 emit placemarkAChanged();
46 emit nameAChanged();
47 emit descriptionAChanged();
48}
49
50GeoDataPlacemark MergeItem::placemarkB() const
51{
52 return m_placemarkB;
53}
54
55void MergeItem::setPlacemarkB( const GeoDataPlacemark &placemark )
56{
57 m_placemarkB = placemark;
58 emit placemarkBChanged();
59 emit nameBChanged();
60 emit descriptionBChanged();
61}
62
63QString MergeItem::nameA() const
64{
65 return m_placemarkA.name();
66}
67
68QString MergeItem::nameB() const
69{
70 return m_placemarkB.name();
71}
72
73QString MergeItem::descriptionA() const
74{
75 return m_placemarkA.description();
76}
77
78QString MergeItem::descriptionB() const
79{
80 return m_placemarkB.description();
81}
82
83MergeItem::Action MergeItem::actionA()
84{
85 return m_actionA;
86}
87
88void MergeItem::setActionA( MergeItem::Action action )
89{
90 m_actionA = action;
91}
92
93MergeItem::Action MergeItem::actionB() const
94{
95 return m_actionB;
96}
97
98void MergeItem::setActionB( MergeItem::Action action )
99{
100 m_actionB = action;
101}
102
103MergeItem::Resolution MergeItem::resolution() const
104{
105 return m_resolution;
106}
107
108void MergeItem::setResolution( MergeItem::Resolution resolution )
109{
110 m_resolution = resolution;
111 emit resolutionChanged();
112}
113
114}
115
116#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.
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.