8#include <QtCore/QDebug>
12QT_DEFINE_QSDP_SPECIALIZATION_DTOR(QGeoTileSpecPrivate)
14QGeoTileSpec::QGeoTileSpec()
15 : d(
new QGeoTileSpecPrivate())
19QGeoTileSpec::QGeoTileSpec(
const QString &plugin,
int mapId,
int zoom,
int x,
int y,
int version)
20 : d(
new QGeoTileSpecPrivate(plugin, mapId, zoom, x, y, version))
24QGeoTileSpec::QGeoTileSpec(
const QGeoTileSpec &other)
noexcept =
default;
26QGeoTileSpec::~QGeoTileSpec() =
default;
28QGeoTileSpec &QGeoTileSpec::operator=(
const QGeoTileSpec &other)
noexcept
37QString QGeoTileSpec::plugin()
const
42void QGeoTileSpec::setZoom(
int zoom)
47int QGeoTileSpec::zoom()
const
52void QGeoTileSpec::setX(
int x)
57int QGeoTileSpec::x()
const
62void QGeoTileSpec::setY(
int y)
67int QGeoTileSpec::y()
const
72void QGeoTileSpec::setMapId(
int mapId)
77int QGeoTileSpec::mapId()
const
82void QGeoTileSpec::setVersion(
int version)
84 d->version_ = version;
87int QGeoTileSpec::version()
const
92bool QGeoTileSpec::isEqual(
const QGeoTileSpec &rhs)
const noexcept
94 return (*(d.constData()) == *(rhs.d.constData()));
97bool QGeoTileSpec::isLess(
const QGeoTileSpec &rhs)
const noexcept
99 return (*(d.constData()) < *(rhs.d.constData()));
102size_t QGeoTileSpec::hash(size_t seed)
const noexcept
104 return d->hash(seed);
109 dbg << spec.plugin() << spec.mapId() << spec.zoom() << spec.x() << spec.y() << spec.version();
113bool QGeoTileSpecPrivate::operator<(
const QGeoTileSpecPrivate &rhs)
const
115 if (plugin_ < rhs.plugin_)
117 if (plugin_ > rhs.plugin_)
120 if (mapId_ < rhs.mapId_)
122 if (mapId_ > rhs.mapId_)
125 if (zoom_ < rhs.zoom_)
127 if (zoom_ > rhs.zoom_)
140 return (version_ < rhs.version_);
Combined button and popup list for selecting options.
QDebug operator<<(QDebug dbg, const QFileInfo &fi)