7#include "GeoDataObject.h"
14#include "GeoDataDocument.h"
16#include "GeoDataTypes.h"
21class GeoDataObjectPrivate
24 GeoDataObjectPrivate()
33 GeoDataObject *m_parent;
36GeoDataObject::GeoDataObject()
39 , d(new GeoDataObjectPrivate())
43GeoDataObject::GeoDataObject(GeoDataObject
const &other)
46 , d(new GeoDataObjectPrivate(*other.d))
50GeoDataObject &GeoDataObject::operator=(
const GeoDataObject &rhs)
56GeoDataObject::~GeoDataObject()
81void GeoDataObject::setId(
const QString &value)
91void GeoDataObject::setTargetId(
const QString &value)
93 d->m_targetId = value;
96QString GeoDataObject::resolvePath(
const QString &relativePath)
const
98 QUrl const url(relativePath);
100 if (url.isRelative() && fileInfo.isRelative()) {
103 QString const baseUri = document->baseUri();
106 return absoluteImage.absoluteFilePath();
107 }
else if (d->m_parent) {
108 return d->m_parent->resolvePath(relativePath);
118 stream << d->m_targetId;
124 stream >> d->m_targetId;
129 return d->m_id == other.d->m_id && d->m_targetId == other.d->m_targetId;
A container for Features, Styles and in the future Schemas.
A base class for all geodata objects.
Binds a QML item to a specific geodetic location in screen coordinates.
QString absolutePath() const const
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:12 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.