Marble
7#include "KmlFolderTagHandler.h"
9#include "GeoDataContainer.h"
10#include "GeoDataDocument.h"
11#include "GeoDataFolder.h"
12#include "GeoDataParser.h"
13#include "KmlElementDictionary.h"
14#include "KmlObjectTagHandler.h"
20KML_DEFINE_TAG_HANDLER(Folder)
22GeoNode *KmlFolderTagHandler::parse(GeoParser &parser)
const
24 Q_ASSERT(parser.isStartElement() && parser.isValidElement(QLatin1StringView(kmlTag_Folder)));
26 GeoStackItem parentItem = parser.parentElement();
27 auto folder =
new GeoDataFolder;
28 KmlObjectTagHandler::parseIdentifiers(parser, folder);
29 if (parentItem.represents(kmlTag_Folder) || parentItem.represents(kmlTag_Document)) {
30 auto parentPtr = parentItem.nodeAs<GeoDataContainer>();
31 parentPtr->append(folder);
34 }
else if (parentItem.qualifiedName().first == QLatin1StringView(kmlTag_kml)) {
35 GeoDataDocument *doc = geoDataDoc(parser);
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:09 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.