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
Tobias Hunger
qt-creator
Commits
d7e82677
Commit
d7e82677
authored
Dec 14, 2010
by
Roberto Raggi
Browse files
Don't request a new completion when the completion box is already visible.
parent
9c21b5a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/basetexteditor.cpp
View file @
d7e82677
...
...
@@ -1837,9 +1837,13 @@ void BaseTextEditor::keyPressEvent(QKeyEvent *e)
void
BaseTextEditor
::
maybeRequestAutoCompletion
(
const
QChar
&
ch
)
{
if
(
ch
.
isLetterOrNumber
()
||
ch
==
QLatin1Char
(
'_'
))
{
d
->
m_requestAutoCompletionRevision
=
document
()
->
revision
();
d
->
m_requestAutoCompletionPosition
=
position
();
d
->
m_requestAutoCompletionTimer
->
start
();
if
(
CompletionSupport
::
instance
()
->
isActive
())
d
->
m_requestAutoCompletionTimer
->
stop
();
else
{
d
->
m_requestAutoCompletionRevision
=
document
()
->
revision
();
d
->
m_requestAutoCompletionPosition
=
position
();
d
->
m_requestAutoCompletionTimer
->
start
();
}
}
else
{
d
->
m_requestAutoCompletionTimer
->
stop
();
emit
requestAutoCompletion
(
editableInterface
(),
false
);
...
...
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