Commit ac2fb06b authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.propertyEditor: cache panes based on type

Before we cached based on the main qml url - This way we skip setting up
the specific widgets each time we change selection
parent c4e83454
......@@ -445,12 +445,19 @@ void PropertyEditor::resetView()
if (m_selectedNode.isValid())
qmlSpecificsFile = fileToUrl(locateQmlFile(m_selectedNode.type() + "Specifics.qml"));
NodeType *type = m_typeHash.value(qmlFile.toString());
QString typeString("invalid");
if (m_selectedNode.isValid()) {
qmlSpecificsFile = fileToUrl(locateQmlFile(m_selectedNode.type() + "Specifics.qml"));
typeString = m_selectedNode.type();
}
NodeType *type = m_typeHash.value(typeString);
if (!type) {
type = new NodeType(qmlFile, this);
m_stackedWidget->addWidget(type->m_view);
m_typeHash.insert(qmlFile.toString(), type);
m_typeHash.insert(typeString, type);
QmlObjectNode fxObjectNode;
if (m_selectedNode.isValid()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment