forked from qt-creator/qt-creator
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:
committed by
Miikka Heikkinen
parent
3d78fef4ef
commit
f2883c19b1
@@ -270,6 +270,9 @@ ServerNodeInstance ServerNodeInstance::create(NodeInstanceServer *nodeInstanceSe
|
||||
|
||||
instance.internalInstance()->initialize(instance.m_nodeInstance, instanceContainer.metaFlags());
|
||||
|
||||
// Handle hidden state to initialize pickable state
|
||||
nodeInstanceServer->handleInstanceHidden(instance, false, false);
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
@@ -346,9 +349,16 @@ void ServerNodeInstance::setPropertyBinding(const PropertyName &name, const QStr
|
||||
m_nodeInstance->setPropertyBinding(name, expression);
|
||||
}
|
||||
|
||||
void ServerNodeInstance::setHideInEditor(bool b)
|
||||
void ServerNodeInstance::setHiddenInEditor(bool b)
|
||||
{
|
||||
m_nodeInstance->setHideInEditor(b);
|
||||
m_nodeInstance->setHiddenInEditor(b);
|
||||
m_nodeInstance->nodeInstanceServer()->handleInstanceHidden(*this, b, true);
|
||||
}
|
||||
|
||||
void ServerNodeInstance::setLockedInEditor(bool b)
|
||||
{
|
||||
m_nodeInstance->setLockedInEditor(b);
|
||||
m_nodeInstance->nodeInstanceServer()->handleInstanceLocked(*this, b, true);
|
||||
}
|
||||
|
||||
void ServerNodeInstance::resetProperty(const PropertyName &name)
|
||||
|
||||
Reference in New Issue
Block a user