34 setAutoCompletionCaseSensitivity(
false );
39 void QgsCodeEditorSQL::setSciLexerSQL()
44 font.setPointSize( QLabel().font().pointSize() );
46 QsciLexerSQL *sqlLexer =
new QgsCaseInsensitiveLexerSQL(
this );
47 sqlLexer->setDefaultFont( font );
48 sqlLexer->setFont( font, -1 );
50 sqlLexer->setFont( font, QsciLexerSQL::Keyword );
51 sqlLexer->setColor( Qt::darkYellow, QsciLexerSQL::DoubleQuotedString );
A text editor based on QScintilla2.
void setFoldingVisible(bool folding)
Set folding visible state.
QgsCodeEditorSQL(QWidget *parent=nullptr)
Constructor for QgsCodeEditorSQL.
void setMarginVisible(bool margin)
Set margin visible state.
void setTitle(const QString &title)
Set the widget title.