[QScintilla] Case in-sensitive autocompletion
Phil Thompson
phil at riverbankcomputing.com
Sun Feb 6 16:15:17 GMT 2011
On Sat, 29 Jan 2011 15:44:46 +0100, David Moreno <saimazoon at terra.es>
wrote:
> Hello
>
> I'm using QsciAPIs for producing a custom made completion list. The
> completion list is working fine but I want to deactivate the
> case-sensitive.
>
> The declaration lines are as follow:
>
> new_texteditor->setUtf8(TRUE);
> // ...Lista de palabras clave...
> QsciAPIs *api_temp=new QsciAPIs(lexer_temp);
> api_temp->clear();
>
> api_temp->prepare();
> project_properties.apis.push_back(api_temp);
>
> lexer_temp->setAPIs(project_properties.apis.back());
> // Opciones de edición de código...
>
> new_texteditor->setFolding(QsciScintilla::CircledTreeFoldStyle);
> new_texteditor->setAutoCompletionThreshold(1);
>
> new_texteditor->setAutoCompletionSource(QsciScintilla::AcsAPIs);
>
> new_texteditor->setBraceMatching(QsciScintilla::StrictBraceMatch);
> new_texteditor->setTabWidth(4);
>
> new_texteditor->setAutoCompletionCaseSensitivity(FALSE); // En inform no
> se utiliza CASE SENSITIVE
>
> I'm calling the setAutoCompletionCaseSensitivy using FALSE, but it is of
> no use. I'm using the lastest stable version 2.4.6.
It's ignored if there is a lexer set. With hindsight I don't think there
is a good reason to impose this restriction so I've removed it in tonight's
snapshot.
As a workaround you can use the low-level API (SCI_AUTOCSETIGNORECASE).
Phil
More information about the QScintilla
mailing list