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
qgeotilespec_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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#ifndef QGEOTILESPEC_P_H
4#define QGEOTILESPEC_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QString>
18#include <QSharedData>
19
21
23{
24public:
25 QGeoTileSpecPrivate(const QString &plugin = {}, int mapId = 0,
26 int zoom = -1, int x = -1, int y = -1, int version = -1)
27 : plugin_(plugin), mapId_(mapId), zoom_(zoom),
28 x_(x), y_(y), version_(version)
29 {}
30
31 inline bool operator==(const QGeoTileSpecPrivate &rhs) const
32 {
33 return mapId_ == rhs.mapId_
34 && zoom_ == rhs.zoom_
35 && x_ == rhs.x_
36 && y_ == rhs.y_
37 && version_ == rhs.version_
38 && plugin_ == rhs.plugin_;
39 }
40 bool operator<(const QGeoTileSpecPrivate &rhs) const;
41
43 int mapId_ = 0;
44 int zoom_ = -1;
45 int x_ = -1;
46 int y_ = -1;
47 int version_ = -1;
48};
49
51
52#endif // QGEOTILESPEC_P_H
bool operator==(const QGeoTileSpecPrivate &rhs) const
QGeoTileSpecPrivate(const QString &plugin={}, int mapId=0, int zoom=-1, int x=-1, int y=-1, int version=-1)
bool operator<(const QGeoTileSpecPrivate &rhs) const
\inmodule QtCore
Definition qshareddata.h:19
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLint y