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;
113class QgsCaseInsensitiveLexerSQL:
public QsciLexerSQL
119 explicit QgsCaseInsensitiveLexerSQL( QObject *parent =
nullptr ) : QsciLexerSQL( parent ) {}
121 bool caseSensitive()
const override {
return false; }
A SQL editor based on QScintilla2.
A text editor based on QScintilla2.
Container of fields for a vector layer.
#define SIP_IF_MODULE(condition)