Marble
7 #include "GeoSceneSection.h"
9 #include "MarbleDebug.h"
11 #include "GeoSceneTypes.h"
12 #include "GeoSceneItem.h"
17 GeoSceneSection::GeoSceneSection(
const QString& name )
24 GeoSceneSection::~GeoSceneSection()
26 qDeleteAll( m_items );
31 return GeoSceneTypes::GeoSceneSectionType;
38 while (it != m_items.end()) {
40 if ( currentItem->name() == item->name() ) {
51 m_items.append( item );
61 for (; it != end; ++it) {
62 if ( (*it)->name() == name ) {
69 item =
new GeoSceneItem( name );
81 QString GeoSceneSection::name()
const
86 QString GeoSceneSection::heading()
const
91 void GeoSceneSection::setHeading(
const QString& heading )
96 bool GeoSceneSection::checkable()
const
101 void GeoSceneSection::setCheckable(
bool checkable )
103 m_checkable = checkable;
106 QString GeoSceneSection::connectTo()
const
111 void GeoSceneSection::setConnectTo(
const QString& connectTo )
113 m_connectTo = connectTo;
116 int GeoSceneSection::spacing()
const
121 void GeoSceneSection::setSpacing(
int spacing )
126 QString GeoSceneSection::radio()
const
131 void GeoSceneSection::setRadio(
const QString& radio )
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
void addItem(GeoSceneItem *)
Add an item to the legend section.
Binds a QML item to a specific geodetic location in screen coordinates.
QString name(StandardShortcut id)
The section item in a legend of a GeoScene document.
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.