7#include "GeoSceneGroup.h"
9#include "GeoSceneProperty.h"
10#include "GeoSceneTypes.h"
15GeoSceneGroup::GeoSceneGroup(
const QString &name)
20GeoSceneGroup::~GeoSceneGroup()
22 qDeleteAll(m_properties);
25bool GeoSceneGroup::propertyAvailable(
const QString &name,
bool &available)
const
29 for (; it != end; ++it) {
30 if ((*it)->name() == name) {
31 available = (*it)->available();
41bool GeoSceneGroup::setPropertyValue(
const QString &name,
bool value)
45 for (; it != end; ++it) {
46 if ((*it)->name() == name) {
47 (*it)->setValue(value);
48 Q_EMIT valueChanged(name, value);
56bool GeoSceneGroup::propertyValue(
const QString &name,
bool &value)
const
60 for (; it != end; ++it) {
61 if ((*it)->name() == name) {
62 value = (*it)->value();
81 while (it != m_properties.end()) {
83 if (currentProperty->name() == property->name()) {
84 delete currentProperty;
85 m_properties.erase(it);
92 m_properties.append(property);
95 connect(property, SIGNAL(valueChanged(
QString,
bool)), SIGNAL(valueChanged(
QString,
bool)));
96 Q_EMIT valueChanged(property->name(), property->value());
105 for (; it != end; ++it) {
106 if ((*it)->name() == name) {
117GeoSceneProperty *GeoSceneGroup::property(
const QString &name)
119 return const_cast<GeoSceneProperty *
>(
static_cast<GeoSceneGroup
const *
>(
this)->property(name));
130 result.
reserve(m_properties.size());
132 for (
const GeoSceneProperty *property : m_properties) {
139QString GeoSceneGroup::name()
const
144const char *GeoSceneGroup::nodeType()
const
146 return GeoSceneTypes::GeoSceneGroupType;
151#include "moc_GeoSceneGroup.cpp"
Settings property within a GeoScene document.
QString name(GameStandardAction id)
Binds a QML item to a specific geodetic location in screen coordinates.
void reserve(qsizetype size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.