5#include "KmlDurationTagHandler.h"
7#include "KmlElementDictionary.h"
9#include "GeoDataAnimatedUpdate.h"
10#include "GeoDataFlyTo.h"
11#include "GeoDataWait.h"
19KML_DEFINE_TAG_HANDLER_GX22(duration)
21GeoNode *KmldurationTagHandler::parse(GeoParser &parser)
const
23 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1StringView(kmlTag_duration)));
25 GeoStackItem parentItem = parser.parentElement();
27 qreal
const duration = parser.readElementText().trimmed().toDouble();
28 if (parentItem.is<GeoDataFlyTo>()) {
29 parentItem.nodeAs<GeoDataFlyTo>()->setDuration(duration);
31 if (parentItem.is<GeoDataWait>()) {
32 parentItem.nodeAs<GeoDataWait>()->setDuration(duration);
34 if (parentItem.is<GeoDataAnimatedUpdate>()) {
35 parentItem.nodeAs<GeoDataAnimatedUpdate>()->setDuration(duration);
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.