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
if ( {
data.insert(ItemTypeRole, ElementType);
data.insert(AnnotationRole, getAnnotation(objDef->initializer));
if (!m_typeToIcon.contains(typeName)) {
m_typeToIcon.insert(typeName, getIcon(objDef->qualifiedTypeNameId));
......@@ -806,7 +807,6 @@ QString QmlOutlineModel::getAnnotation(AST::UiObjectInitializer *objectInitializ
if (bindings.contains("target"))
return bindings.value("target");
return QString();
Supports Markdown
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