33 setAutoCompletionCaseSensitivity(
false );
42 mSqlLexer =
new QgsCaseInsensitiveLexerSQL(
this );
43 mSqlLexer->setDefaultFont( font );
46 mSqlLexer->setFont( font, -1 );
48 mSqlLexer->setFont( font, QsciLexerSQL::Keyword );
50 font.setBold(
false );
51 font.setItalic(
true );
52 mSqlLexer->setFont( font, QsciLexerSQL::Comment );
53 mSqlLexer->setFont( font, QsciLexerSQL::CommentLine );
55 mSqlLexer->setColor(
defaultColor, QsciLexerSQL::Default );
67 setLexer( mSqlLexer );
84 void QgsCodeEditorSQL::updateApis()
86 mApis =
new QsciAPIs( mSqlLexer );
88 for (
const QString &fieldName : qgis::as_const( mFieldNames ) )
90 mApis->add( fieldName );
94 mSqlLexer->setAPIs( mApis );