mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-16 17:10:15 -05:00
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:
+2
-2
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user