Marble

KmlObjectTagWriter.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Dennis Nienhüser <nienhueser@kde.org>
4//
5
6#include "KmlObjectTagWriter.h"
7
8#include "GeoWriter.h"
9
10namespace Marble
11{
12
13void KmlObjectTagWriter::writeIdentifiers(GeoWriter &writer, const GeoDataObject *object)
14{
15 if (object && !object->id().isEmpty()) {
16 writer.writeAttribute("id", object->id().toUtf8());
17 }
18 if (object && !object->targetId().isEmpty()) {
19 writer.writeAttribute("targetId", object->targetId().toUtf8());
20 }
21}
22
23}
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.