16#ifndef QGSCODEEDITORSQL_H
17#define QGSCODEEDITORSQL_H
23#include <Qsci/qscilexersql.h>
51 void setFields(
const QgsFields &fields );
58 void setFieldNames(
const QStringList &fieldNames );
64 QStringList fieldNames()
const;
75 void setExtraKeywords(
const QStringList &extraKeywords );
86 QStringList extraKeywords()
const;
89 void initializeLexer()
override;
93 QsciAPIs *mApis =
nullptr;
94 QsciLexerSQL *mSqlLexer =
nullptr;
95 QSet<QString> mExtraKeywords;
97 QSet<QString> mFieldNames;
99 friend class TestQgsQueryResultWidget;
114class QgsCaseInsensitiveLexerSQL:
public QsciLexerSQL
120 explicit QgsCaseInsensitiveLexerSQL( QObject *parent =
nullptr ) : QsciLexerSQL( parent ) {}
122 bool caseSensitive()
const override {
return false; }
ScriptLanguage
Scripting languages.
A SQL editor based on QScintilla2.
A text editor based on QScintilla2.
Container of fields for a vector layer.
#define SIP_IF_MODULE(condition)