16 #ifndef QGSCODEEDITORSQL_H
17 #define QGSCODEEDITORSQL_H
23 #include <Qsci/qscilexersql.h>
50 void setFields(
const QgsFields &fields );
57 void setFieldNames(
const QStringList &fieldNames );
63 QStringList fieldNames()
const;
74 void setExtraKeywords(
const QStringList &extraKeywords );
85 QStringList extraKeywords()
const;
88 void initializeLexer()
override;
92 QsciAPIs *mApis =
nullptr;
93 QsciLexerSQL *mSqlLexer =
nullptr;
94 QSet<QString> mExtraKeywords;
96 QSet<QString> mFieldNames;
98 friend class TestQgsQueryResultWidget;
113 class QgsCaseInsensitiveLexerSQL:
public QsciLexerSQL
119 explicit QgsCaseInsensitiveLexerSQL( QObject *parent =
nullptr ) : QsciLexerSQL( parent ) {}
121 bool caseSensitive()
const override {
return false; }