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
713e4c26
Commit
713e4c26
authored
Jul 26, 2010
by
Olivier Goffart
Browse files
QmlJsDelta: give a valid label to the UiScriptBinding
parent
9d9fca6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljsdelta.cpp
View file @
713e4c26
...
...
@@ -62,7 +62,6 @@ bool BuildParentHash::preVisit(Node* ast)
return
true
;
}
void
BuildParentHash
::
postVisit
(
Node
*
ast
)
{
if
(
ast
->
uiObjectMemberCast
())
{
...
...
@@ -99,7 +98,12 @@ static QString label(UiObjectMember *member, Document::Ptr doc)
}
else
if
(
UiArrayBinding
*
foo
=
cast
<
UiArrayBinding
*>
(
member
))
{
str
=
label
(
foo
->
qualifiedId
)
+
QLatin1String
(
"[]"
);
}
else
if
(
UiScriptBinding
*
foo
=
cast
<
UiScriptBinding
*>
(
member
))
{
Q_UNUSED
(
foo
)
str
=
label
(
foo
->
qualifiedId
)
+
QLatin1Char
(
':'
);
if
(
foo
->
statement
)
{
quint32
start
=
foo
->
statement
->
firstSourceLocation
().
begin
();
quint32
end
=
foo
->
statement
->
lastSourceLocation
().
end
();
str
+=
doc
->
source
().
midRef
(
start
,
end
-
start
);
}
}
else
{
quint32
start
=
member
->
firstSourceLocation
().
begin
();
quint32
end
=
member
->
lastSourceLocation
().
end
();
...
...
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