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
c0429dbd
Commit
c0429dbd
authored
May 06, 2010
by
Roberto Raggi
Browse files
Search for a valid class.
parent
369acdef
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppcodecompletion.cpp
View file @
c0429dbd
...
...
@@ -1462,7 +1462,15 @@ bool CppCodeCompletion::completeQtMethod(const QList<LookupItem> &results,
if
(
classObjects
.
isEmpty
())
continue
;
Class
*
klass
=
classObjects
.
first
()
->
asClass
();
Class
*
klass
=
0
;
foreach
(
Symbol
*
c
,
classObjects
)
{
klass
=
c
->
asClass
();
if
(
klass
!=
0
)
break
;
}
if
(
!
klass
)
continue
;
QList
<
Scope
*>
todo
;
const
QList
<
Scope
*>
visibleScopes
=
context
.
visibleScopes
(
p
);
...
...
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