Marble

KmlObjectTagWriter.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Dennis Nienhüser <[email protected]>
4 //
5 
6 #include "KmlObjectTagWriter.h"
7 
8 #include "GeoWriter.h"
9 
10 namespace Marble {
11 
12 void KmlObjectTagWriter::writeIdentifiers( GeoWriter &writer, const GeoDataObject *object )
13 {
14  if ( object && !object->id().isEmpty() ) {
15  writer.writeAttribute( "id", object->id().toUtf8() );
16  }
17  if ( object && !object->targetId().isEmpty() ) {
18  writer.writeAttribute( "targetId", object->targetId().toUtf8() );
19  }
20 }
21 
22 }
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.