diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-03-26 11:22:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-03-26 13:01:39 +0100 |
commit | 208adbaacae89c50913dbba5901cd255725a6091 (patch) | |
tree | 7b7ec61e443550bddb574a87477712878befeca2 /src/plugins/cpptools/cppcodecompletion.cpp | |
parent | 5c9fd00d357a1a4e5b2a5d85d29dc9de50c0102c (diff) | |
download | qt-creator-208adbaacae89c50913dbba5901cd255725a6091.tar.gz |
Improved check for "scope token"
For example, don't keep triggering scope completion on bunch of colons.
Done with Roberto Raggi.
Diffstat (limited to 'src/plugins/cpptools/cppcodecompletion.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodecompletion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcodecompletion.cpp b/src/plugins/cpptools/cppcodecompletion.cpp index 8b7f59de17..9c54d4969d 100644 --- a/src/plugins/cpptools/cppcodecompletion.cpp +++ b/src/plugins/cpptools/cppcodecompletion.cpp @@ -437,7 +437,7 @@ static int startOfOperator(TextEditor::ITextEditable *editor, } else if (wantFunctionCall && ch == QLatin1Char('(')) { k = T_LPAREN; --start; - } else if (ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) { + } else if (ch3 != QLatin1Char(':') && ch2 == QLatin1Char(':') && ch == QLatin1Char(':')) { k = T_COLON_COLON; start -= 2; } else if (ch2 == QLatin1Char('-') && ch == QLatin1Char('>')) { |