OSDN Git Service

Completion: Ignore non identifiers when matching proposals
authorLeandro Melo <leandro.melo@nokia.com>
Fri, 20 May 2011 10:29:40 +0000 (12:29 +0200)
committerLeandro T. C. Melo <leandro.melo@nokia.com>
Fri, 20 May 2011 15:11:39 +0000 (17:11 +0200)
commit1c60ae10399d3e194b6b0a30abd12c96279fbce3
treea6f0035d3fb1adde67c7356735ca4c752aee3258
parent99fee33fd1a5e82b7be3d17a74229efaaf7571ef
Completion: Ignore non identifiers when matching proposals

Since now we reduced the idle editor time for showing completions,
some things started to be a bit annoying. This fix changes the
prefix from the proposal to include only letters, digits, and the
underscore. Yes, technically they are not allways identifiers
in a generic sense, but it should be enough for our purpose.

Now, you should not receive a proposal 'foo:' when you have already
typed 'foo' in QML, for example.

Change-Id: Ica92182a34636598faedb067d0527e37ca6fee89
Reviewed-on: http://codereview.qt.nokia.com/46
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
src/plugins/texteditor/codeassist/basicproposalitemlistmodel.cpp