Marble
7 #include "KmlStyleUrlTagHandler.h"
11 #include "KmlElementDictionary.h"
12 #include "MarbleDebug.h"
13 #include "GeoDataFeature.h"
14 #include "GeoDataStyleMap.h"
16 #include "GeoParser.h"
22 KML_DEFINE_TAG_HANDLER( styleUrl )
24 GeoNode* KmlstyleUrlTagHandler::parse( GeoParser& parser )
const
26 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_styleUrl)));
28 GeoStackItem parentItem = parser.parentElement();
29 GeoStackItem grandParentItem = parser.parentElement();
31 if( parentItem.represents( kmlTag_Pair ) ) {
34 QString key = parentItem.nodeAs<GeoDataStyleMap>()->lastKey();
35 (*parentItem.nodeAs<GeoDataStyleMap>())[ key ] = content;
36 parentItem.nodeAs<GeoDataStyleMap>()->setLastKey(
QString());
38 }
else if( parentItem.is<GeoDataFeature>() ) {
41 parentItem.nodeAs<GeoDataFeature>()->setStyleUrl( content );
QString trimmed() const const
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 Mon Sep 25 2023 03:50:19 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.