Marble
5 #include "KmlDurationTagHandler.h"
7 #include "MarbleDebug.h"
9 #include "KmlElementDictionary.h"
11 #include "MarbleGlobal.h"
12 #include "GeoDataFlyTo.h"
13 #include "GeoDataWait.h"
14 #include "GeoDataAnimatedUpdate.h"
15 #include "GeoParser.h"
23 KML_DEFINE_TAG_HANDLER_GX22( duration )
25 GeoNode *KmldurationTagHandler::parse(GeoParser & parser)
const
27 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_duration)));
29 GeoStackItem parentItem = parser.parentElement();
31 qreal
const duration = parser.readElementText().trimmed().toDouble();
32 if ( parentItem.is<GeoDataFlyTo>() ){
33 parentItem.nodeAs<GeoDataFlyTo>()->setDuration( duration );
35 if ( parentItem.is<GeoDataWait>() ){
36 parentItem.nodeAs<GeoDataWait>()->setDuration( duration );
38 if ( parentItem.is<GeoDataAnimatedUpdate>() ){
39 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-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.