Commit 55b6cb0a authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlOutline: Show annotation in filtered mode

Fixes a regression.
parent 1a8d8cd0
...@@ -364,6 +364,7 @@ QModelIndex QmlOutlineModel::enterObjectDefinition(AST::UiObjectDefinition *objD ...@@ -364,6 +364,7 @@ QModelIndex QmlOutlineModel::enterObjectDefinition(AST::UiObjectDefinition *objD
if (typeName.at(0).isUpper()) { if (typeName.at(0).isUpper()) {
data.insert(ItemTypeRole, ElementType); data.insert(ItemTypeRole, ElementType);
data.insert(AnnotationRole, getAnnotation(objDef->initializer));
if (!m_typeToIcon.contains(typeName)) { if (!m_typeToIcon.contains(typeName)) {
m_typeToIcon.insert(typeName, getIcon(objDef->qualifiedTypeNameId)); m_typeToIcon.insert(typeName, getIcon(objDef->qualifiedTypeNameId));
} }
...@@ -806,7 +807,6 @@ QString QmlOutlineModel::getAnnotation(AST::UiObjectInitializer *objectInitializ ...@@ -806,7 +807,6 @@ QString QmlOutlineModel::getAnnotation(AST::UiObjectInitializer *objectInitializ
if (bindings.contains("target")) if (bindings.contains("target"))
return bindings.value("target"); return bindings.value("target");
return QString(); return QString();
} }
......
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