Core: Add logic to rename dynamic properties

This commit is contained in:
Pieter Hijma
2025-05-18 14:58:53 +02:00
committed by Yorik van Havre
parent dc7ceddc50
commit e7f8f2f48c
4 changed files with 62 additions and 0 deletions

View File

@@ -539,6 +539,19 @@ public:
return dynamicProps.changeDynamicProperty(prop,group,doc);
}
/**
* @brief Rename the dynamic property.
*
* @param[in] prop The property to rename.
* @param[in] name The new name for the property.
*
* @return `true` if the property was renamed; `false` otherwise.
* @throw Base::NameError If the new name is invalid or already exists.
*/
bool renameDynamicProperty(Property *prop, const char *name) {
return dynamicProps.renameDynamicProperty(prop,name);
}
/**
* @brief Remove a dynamic property.
*