Gui: improve PropertyEditor refresh (#3535)
* Gui: fix PropertyView 'Add property' action * Gui: fix property view font color for linked property * Gui: improve PropertyEditor refresh * Gui: show real property name in property view tool tip * Gui: improve property view tool tip * Gui: fix auto recompute in property view * Gui: remove duplicated PropertyModel signal of dataChanged() * Gui: fix property view update on property change Including changes in document properties * Gui: fix transaction closing on property editor change On editing row removal and on model reset. * Gui: fix property view auto expansion of previous selected item * Gui: improve property editor navigation using tab/shift+tab
This commit is contained in:
@@ -107,7 +107,8 @@ void DlgAddProperty::accept()
|
||||
name = group + "_" + name;
|
||||
|
||||
for(auto c : containers) {
|
||||
if(c->getPropertyByName(name.c_str())) {
|
||||
auto prop = c->getPropertyByName(name.c_str());
|
||||
if(prop && prop->getContainer() == c) {
|
||||
QMessageBox::critical(getMainWindow(),
|
||||
QObject::tr("Invalid name"),
|
||||
QObject::tr("The property '%1' already exists in '%2'").arg(
|
||||
@@ -127,7 +128,7 @@ void DlgAddProperty::accept()
|
||||
e.ReportException();
|
||||
for(auto it2=containers.begin();it2!=it;++it2) {
|
||||
try {
|
||||
(*it)->removeDynamicProperty(name.c_str());
|
||||
(*it2)->removeDynamicProperty(name.c_str());
|
||||
} catch(Base::Exception &e) {
|
||||
e.ReportException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user