qscintilla: Finetune auto completion

Only start auto completion after a three letter threshold.

Only take words for auto completion from the API word list, not from the
current document.
This commit is contained in:
Martin Kleusberg
2015-04-19 12:41:51 +02:00
parent 649b1790e5
commit 94846336df
+2 -2
View File
@@ -60,10 +60,10 @@ SqlTextEdit::SqlTextEdit(QWidget* parent) :
setCaretLineBackgroundColor(QColor(PreferencesDialog::getSettingsValue("syntaxhighlighter", "currentline_colour").toString()));
// Enable auto completion
setAutoCompletionThreshold(1);
setAutoCompletionThreshold(3);
setAutoCompletionCaseSensitivity(false);
setAutoCompletionShowSingle(true);
setAutoCompletionSource(QsciScintilla::AcsAll);
setAutoCompletionSource(QsciScintilla::AcsAPIs);
// Set icons for auto completion
registerImage(SqlUiLexer::ApiCompleterIconIdKeyword, QImage(":/icons/keyword"));