Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1fdfe414
Commit
1fdfe414
authored
Nov 30, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reactivate the argument hints.
parent
d3290c32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
src/plugins/glsleditor/glslcodecompletion.cpp
src/plugins/glsleditor/glslcodecompletion.cpp
+19
-3
No files found.
src/plugins/glsleditor/glslcodecompletion.cpp
View file @
1fdfe414
...
...
@@ -581,7 +581,7 @@ bool CodeCompletion::triggersCompletion(TextEditor::ITextEditable *editor)
}
}
if
(
ch
==
QLatin1Char
(
'('
)
||
ch
==
QLatin1Char
(
'.'
))
if
(
ch
==
QLatin1Char
(
'('
)
||
ch
==
QLatin1Char
(
'.'
)
||
ch
==
QLatin1Char
(
','
)
)
return
true
;
return
false
;
...
...
@@ -604,8 +604,24 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
QStringList
members
;
QStringList
specialMembers
;
if
(
ch
==
QLatin1Char
(
'.'
)
||
(
ch
==
QLatin1Char
(
'('
)
&&
pos
==
editor
->
position
()
-
1
))
{
const
bool
memberCompletion
=
(
ch
==
QLatin1Char
(
'.'
));
bool
functionCall
=
(
ch
==
QLatin1Char
(
'('
)
&&
pos
==
editor
->
position
()
-
1
);
if
(
ch
==
QLatin1Char
(
','
))
{
QTextCursor
tc
(
edit
->
document
());
tc
.
setPosition
(
pos
);
const
int
start
=
expressionUnderCursor
.
startOfFunctionCall
(
tc
);
if
(
start
==
-
1
)
return
-
1
;
if
(
edit
->
characterAt
(
start
)
==
QLatin1Char
(
'('
))
{
pos
=
start
;
ch
=
QLatin1Char
(
'('
);
functionCall
=
true
;
}
}
if
(
ch
==
QLatin1Char
(
'.'
)
||
functionCall
)
{
const
bool
memberCompletion
=
!
functionCall
;
QTextCursor
tc
(
edit
->
document
());
tc
.
setPosition
(
pos
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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