Marble
7#include "DgmlPropertyTagHandler.h"
9#include "MarbleDebug.h"
11#include "DgmlAttributeDictionary.h"
12#include "DgmlElementDictionary.h"
14#include "GeoSceneGroup.h"
15#include "GeoSceneProperty.h"
16#include "GeoSceneSettings.h"
22DGML_DEFINE_TAG_HANDLER(Property)
24GeoNode *DgmlPropertyTagHandler::parse(GeoParser &parser)
const
27 Q_ASSERT(parser.isStartElement() && parser.isValidElement(QLatin1StringView(dgmlTag_Property)));
29 QString
name = parser.attribute(dgmlAttr_name).
trimmed();
31 GeoSceneProperty *
property =
nullptr;
34 GeoStackItem parentItem = parser.parentElement();
35 if (parentItem.represents(dgmlTag_Settings)) {
36 property =
new GeoSceneProperty(name);
37 parentItem.nodeAs<GeoSceneSettings>()->addProperty(property);
39 if (parentItem.represents(dgmlTag_Group)) {
40 property =
new GeoSceneProperty(name);
41 parentItem.nodeAs<GeoSceneGroup>()->addProperty(property);
QString name(StandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
QString trimmed() const const
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.