Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
55b6cb0a
Commit
55b6cb0a
authored
Sep 03, 2010
by
Kai Koehne
Browse files
QmlOutline: Show annotation in filtered mode
Fixes a regression.
parent
1a8d8cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmloutlinemodel.cpp
View file @
55b6cb0a
...
...
@@ -364,6 +364,7 @@ QModelIndex QmlOutlineModel::enterObjectDefinition(AST::UiObjectDefinition *objD
if
(
typeName
.
at
(
0
).
isUpper
())
{
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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment