Marble
6 #include "KmlListItemTypeTagHandler.h"
8 #include "MarbleDebug.h"
10 #include "KmlElementDictionary.h"
11 #include "GeoDataListStyle.h"
12 #include "GeoDataParser.h"
18 KML_DEFINE_TAG_HANDLER( listItemType )
20 GeoNode* KmllistItemTypeTagHandler::parse( GeoParser& parser )
const
22 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_listItemType)));
24 GeoStackItem parentItem = parser.parentElement();
26 if ( parentItem.represents( kmlTag_ListStyle ) )
29 GeoDataListStyle::ListItemType
type = GeoDataListStyle::Check;
31 type = GeoDataListStyle::Check;
33 type = GeoDataListStyle::RadioFolder;
35 type = GeoDataListStyle::CheckOffOnly;
37 type = GeoDataListStyle::CheckHideChildren;
41 mDebug() <<
"listItemType value is invalid"
42 <<
"falling back to default - check";
44 parentItem.nodeAs<GeoDataListStyle>()->setListItemType( type );
Type type(const QSqlDatabase &db)
QString trimmed() const const
Binds a QML item to a specific geodetic location in screen coordinates.
QDebug mDebug()
a function to replace qDebug() in Marble library code
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.