Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgeomaptype.cpp
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qgeomaptype_p.h"
5#include "qgeomaptype_p_p.h"
6
8
10
11
25
26QGeoMapType::QGeoMapType(const QGeoMapType &other) noexcept = default;
27
29 const QString &description, bool mobile, bool night, int mapId,
30 const QByteArray &pluginName,
31 const QGeoCameraCapabilities &cameraCapabilities,
32 const QVariantMap &metadata)
33: d_ptr(new QGeoMapTypePrivate(style, name, description, mobile, night, mapId, pluginName, cameraCapabilities, metadata))
34{
35}
36
38
40{
41 if (this == &other)
42 return *this;
43
44 d_ptr = other.d_ptr;
45 return *this;
46}
47
48bool QGeoMapType::isEqual(const QGeoMapType &other) const noexcept
49{
50 return (*d_ptr.constData() == *other.d_ptr.constData());
51}
52
74{
75 return d_ptr->style_;
76}
77
85{
86 return d_ptr->name_;
87}
88
96{
97 return d_ptr->description_;
98}
99
109{
110 return d_ptr->mobile_;
111}
112
122{
123 return d_ptr->night_;
124}
125
127{
128 return d_ptr->mapId_;
129}
130
132{
133 return d_ptr->pluginName_;
134}
135
147
156{
157 return d_ptr->metadata_;
158}
159
161
163 const QString &description, bool mobile, bool night,
164 int mapId, const QByteArray &pluginName,
165 const QGeoCameraCapabilities &cameraCapabilities,
166 const QVariantMap &metadata)
167: name_(name), description_(description), pluginName_(pluginName),
168 cameraCapabilities_(cameraCapabilities), metadata_(metadata),
169 style_(style), mapId_(mapId), mobile_(mobile), night_(night)
170{
171}
172
174{
175 return pluginName_ == other.pluginName_ && style_ == other.style_ && name_ == other.name_ &&
176 description_ == other.description_ && mobile_ == other.mobile_ && night_ == other.night_ &&
177 mapId_ == other.mapId_ && cameraCapabilities_ == other.cameraCapabilities_ &&
178 metadata_ == other.metadata_;
179}
180
182
183#include "moc_qgeomaptype_p.cpp"
\inmodule QtCore
Definition qbytearray.h:57
QGeoMapType::MapStyle style_
QGeoCameraCapabilities cameraCapabilities_
bool operator==(const QGeoMapTypePrivate &other) const
QML_STRUCTURED_VALUEMapStyle style
QVariantMap metadata
QByteArray pluginName() const
QGeoMapType()
\qmltype mapType \inqmlmodule QtLocation
int mapId() const
QGeoMapType & operator=(const QGeoMapType &other) noexcept
QString description
QGeoCameraCapabilities cameraCapabilities
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint name
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QSharedPointer< T > other(t)
[5]