Gui: Add support for renaming properties

This commit is contained in:
Pieter Hijma
2025-07-17 11:25:19 +02:00
committed by Kacper Donat
parent fbc4f450be
commit 5a842e93f5
8 changed files with 105 additions and 0 deletions

View File

@@ -221,6 +221,14 @@ bool PropertyItem::removeProperty(const App::Property* prop)
return propertyItems.empty();
}
bool PropertyItem::renameProperty(const App::Property* prop)
{
setPropertyData({const_cast<App::Property*>(prop)});
QString name = QString::fromLatin1(prop->getName());
setPropertyName(name, name);
return true;
}
App::Property* PropertyItem::getFirstProperty()
{
if (propertyItems.empty()) {