QmlDesigner: Add lock feature support to 3D editor

Added lock feature support for 3D editor. Also refactored the hide
support, since the two use largely similar logic.

Task-number: QDS-2915
Change-Id: I627848f3a3a73881427a03aeec6793fd26a1885a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2020-10-09 11:14:14 +02:00
committed by Miikka Heikkinen
parent 3d78fef4ef
commit f2883c19b1
16 changed files with 343 additions and 106 deletions
@@ -392,8 +392,24 @@ PropertyNameList ObjectNodeInstance::ignoredProperties() const
return PropertyNameList();
}
void ObjectNodeInstance::setHideInEditor(bool)
void ObjectNodeInstance::setHiddenInEditor(bool b)
{
m_isHiddenInEditor = b;
}
bool ObjectNodeInstance::isHiddenInEditor() const
{
return m_isHiddenInEditor;
}
void ObjectNodeInstance::setLockedInEditor(bool b)
{
m_isLockedInEditor = b;
}
bool ObjectNodeInstance::isLockedInEditor() const
{
return m_isLockedInEditor;
}
void ObjectNodeInstance::setModifiedFlag(bool b)