6#include "GeoDataOverlay.h"
7#include "GeoDataOverlay_p.h"
12GeoDataOverlay::GeoDataOverlay()
13 : GeoDataFeature(new GeoDataOverlayPrivate)
18GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay &other)
19 : GeoDataFeature(other, new GeoDataOverlayPrivate(*other.d_func()))
24GeoDataOverlay::GeoDataOverlay(GeoDataOverlayPrivate *priv)
25 : GeoDataFeature(priv)
29GeoDataOverlay::GeoDataOverlay(
const GeoDataOverlay &other, GeoDataOverlayPrivate *priv)
30 : GeoDataFeature(other, priv)
34GeoDataOverlay::~GeoDataOverlay() =
default;
36GeoDataOverlay &GeoDataOverlay::operator=(
const GeoDataOverlay &other)
46QColor GeoDataOverlay::color()
const
48 Q_D(
const GeoDataOverlay);
52void GeoDataOverlay::setColor(
const QColor &color)
58int GeoDataOverlay::drawOrder()
const
60 Q_D(
const GeoDataOverlay);
61 return d->m_drawOrder;
64void GeoDataOverlay::setDrawOrder(
int order)
67 d->m_drawOrder = order;
70QImage GeoDataOverlay::icon()
const
72 Q_D(
const GeoDataOverlay);
73 if (d->m_image.isNull() && !d->m_iconPath.isEmpty()) {
74 d->m_image =
QImage(absoluteIconFile());
79void GeoDataOverlay::setIcon(
const QImage &icon)
85void GeoDataOverlay::setIconFile(
const QString &path)
92QString GeoDataOverlay::iconFile()
const
94 Q_D(
const GeoDataOverlay);
98QString GeoDataOverlay::absoluteIconFile()
const
100 Q_D(
const GeoDataOverlay);
101 return resolvePath(d->m_iconPath);
104bool GeoDataOverlay::equals(
const GeoDataOverlay &other)
const
106 Q_D(
const GeoDataOverlay);
107 const GeoDataOverlayPrivate *
const other_d = other.d_func();
109 return GeoDataFeature::equals(other) && d->m_drawOrder == other_d->m_drawOrder && d->m_color == other_d->m_color && d->m_iconPath == other_d->m_iconPath
110 && d->m_image == other_d->m_image;
QString path(const QString &relativePath)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.