Core: Add logic to rename dynamic properties
This commit is contained in:
committed by
Yorik van Havre
parent
dc7ceddc50
commit
e7f8f2f48c
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user