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
@@ -196,7 +196,11 @@ public:
|
||||
|
||||
virtual PropertyNameList ignoredProperties() const;
|
||||
|
||||
void virtual setHideInEditor(bool b);
|
||||
virtual void setHiddenInEditor(bool b);
|
||||
bool isHiddenInEditor() const;
|
||||
|
||||
virtual void setLockedInEditor(bool b);
|
||||
bool isLockedInEditor() const;
|
||||
|
||||
void setModifiedFlag(bool b);
|
||||
|
||||
@@ -213,6 +217,7 @@ protected:
|
||||
|
||||
void initializePropertyWatcher(const ObjectNodeInstance::Pointer &objectNodeInstance);
|
||||
void ensureVector3DDotProperties(PropertyNameList &list) const;
|
||||
|
||||
private:
|
||||
QString m_id;
|
||||
|
||||
@@ -227,6 +232,8 @@ private:
|
||||
bool m_deleteHeldInstance;
|
||||
bool m_isInLayoutable;
|
||||
bool m_isModified = false;
|
||||
bool m_isLockedInEditor = false;
|
||||
bool m_isHiddenInEditor = false;
|
||||
static QHash<EnumerationName, QVariant> m_enumationValueHash;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user