QmlDesigner: Add lock functionality to navigator

* Update icon font and change related theme and constants files
* Add locked column to Navigator
* Add auxiliary property "locked"
* Integrate locked feature into the following components:
  * Transition Editor
  * Connection Editor
  * Form Editor
  * Text Editor
  * Timeline
  * Navigator
  * State Editor

Task-number: QDS-826
Change-Id: Ibf3ae96e0d5daeb1ab00279b94df5aaabe75e0bb
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2020-10-06 12:29:09 +02:00
committed by Henning Gründl
parent 15f39cf37c
commit 2860e57112
38 changed files with 503 additions and 119 deletions

View File

@@ -142,6 +142,18 @@ void TransitionEditorView::selectedNodesChanged(const QList<ModelNode> & /*selec
}
void TransitionEditorView::auxiliaryDataChanged(const ModelNode &modelNode,
const PropertyName &name,
const QVariant &data)
{
if (name == QmlDesigner::lockedProperty && data.toBool() && modelNode.isValid()) {
for (const auto &node : modelNode.allSubModelNodesAndThisNode()) {
if (node.hasAuxiliaryData("transition_expanded"))
m_transitionEditorWidget->graphicsScene()->invalidateHeightForTarget(node);
}
}
}
void TransitionEditorView::propertiesAboutToBeRemoved(
const QList<AbstractProperty> & /*propertyList */)
{
@@ -217,7 +229,7 @@ ModelNode TransitionEditorView::addNewTransition()
QStringList newlist = idPropertyList.value(targetId);
for (const QString &str :locList)
if (!newlist.contains(str))
newlist.append(str);
newlist.append(str);
idPropertyList.insert(targetId, newlist);
} else {
if (!locList.isEmpty())