Gui: Add support for renaming properties
This commit is contained in:
committed by
Kacper Donat
parent
fbc4f450be
commit
5a842e93f5
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user