|
QGIS API Documentation 3.99.0-Master (e9821da5c6b)
|
Creates a group of settings which have a common definition of base key. More...
#include <qgssettingsentrygroup.h>
Public Member Functions | |
| QgsSettingsEntryGroup (QList< const QgsSettingsEntryBase * > settings) | |
| Constructor. | |
| QgsSettingsEntryGroup (QList< const QgsSettingsEntryBase * > settings, bool fatalErrorIfInvalid) | |
| Constructor. | |
| QString | baseKey (const QStringList &dynamicKeyPartList=QStringList()) const |
| Returns the base key for the given dynamicKeyPartList. | |
| bool | isValid () const |
| Returns if the group is valid (if settings share the same base key). | |
| void | removeAllChildrenSettings (const QString &dynamicKeyPart=QString()) const |
| Removes all the settings from this group The dynamicKeyPart argument specifies the dynamic part of the settings key. | |
| void | removeAllChildrenSettings (const QStringList &dynamicKeyPartList) const |
| Removes all the settings from this group The dynamicKeyPartList argument specifies the dynamic part of the settings key. | |
| void | removeAllSettingsAtBaseKey (const QStringList &dynamicKeyPartList=QStringList()) const |
| Removes all the settings at the base key for the given dynamicKeyPartList This means it might remove more settings than the ones registered in the group, use with caution. | |
| const QList< const QgsSettingsEntryBase * > | settings () const |
| Returns all the settings. | |
Creates a group of settings which have a common definition of base key.
Definition at line 41 of file qgssettingsentrygroup.h.
| QgsSettingsEntryGroup::QgsSettingsEntryGroup | ( | QList< const QgsSettingsEntryBase * > | settings | ) |
Constructor.
Definition at line 29 of file qgssettingsentrygroup.cpp.
| QgsSettingsEntryGroup::QgsSettingsEntryGroup | ( | QList< const QgsSettingsEntryBase * > | settings, |
| bool | fatalErrorIfInvalid ) |
Constructor.
Definition at line 35 of file qgssettingsentrygroup.cpp.
| QString QgsSettingsEntryGroup::baseKey | ( | const QStringList & | dynamicKeyPartList = QStringList() | ) | const |
Returns the base key for the given dynamicKeyPartList.
Definition at line 59 of file qgssettingsentrygroup.cpp.
|
inline |
Returns if the group is valid (if settings share the same base key).
Definition at line 59 of file qgssettingsentrygroup.h.
| void QgsSettingsEntryGroup::removeAllChildrenSettings | ( | const QString & | dynamicKeyPart = QString() | ) | const |
Removes all the settings from this group The dynamicKeyPart argument specifies the dynamic part of the settings key.
Definition at line 102 of file qgssettingsentrygroup.cpp.
| void QgsSettingsEntryGroup::removeAllChildrenSettings | ( | const QStringList & | dynamicKeyPartList | ) | const |
Removes all the settings from this group The dynamicKeyPartList argument specifies the dynamic part of the settings key.
Definition at line 107 of file qgssettingsentrygroup.cpp.
| void QgsSettingsEntryGroup::removeAllSettingsAtBaseKey | ( | const QStringList & | dynamicKeyPartList = QStringList() | ) | const |
Removes all the settings at the base key for the given dynamicKeyPartList This means it might remove more settings than the ones registered in the group, use with caution.
Definition at line 87 of file qgssettingsentrygroup.cpp.
|
inline |
Returns all the settings.
Definition at line 65 of file qgssettingsentrygroup.h.