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"
23KML_DEFINE_TAG_HANDLER_GX22( duration )
25GeoNode *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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.