QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | List of all members
QgsCodeEditorSQL Class Reference

#include <qgscodeeditorsql.h>

Inheritance diagram for QgsCodeEditorSQL:
Inheritance graph

Public Member Functions

 QgsCodeEditorSQL (QWidget *parent=nullptr)
 Constructor for QgsCodeEditorSQL. More...
void setFields (const QgsFields &fields)
 Set field names to be added to the lexer API. More...
- Public Member Functions inherited from QgsCodeEditor
 QgsCodeEditor (QWidget *parent=nullptr, const QString &title=QString(), bool folding=false, bool margin=false)
 Construct a new code editor. More...
bool foldingVisible ()
void insertText (const QString &text)
 Insert text at cursor position, or replace any selected text if user has made a selection. More...
bool marginVisible ()
void setFoldingVisible (bool folding)
 Set folding visible state. More...
void setMarginVisible (bool margin)
 Set margin visible state. More...
void setTitle (const QString &title)
 Set the widget title. More...

Additional Inherited Members

- Protected Member Functions inherited from QgsCodeEditor
void focusOutEvent (QFocusEvent *event) override
QFont getMonospaceFont ()
bool isFixedPitch (const QFont &font)
void keyPressEvent (QKeyEvent *event) override

Detailed Description

A SQL editor based on QScintilla2. Adds syntax highlighting and code autocompletion.

may not be available in Python bindings, depending on platform support
QGIS 2.6

Definition at line 34 of file qgscodeeditorsql.h.

Constructor & Destructor Documentation

◆ QgsCodeEditorSQL()

QgsCodeEditorSQL::QgsCodeEditorSQL ( QWidget *  parent = nullptr)

Constructor for QgsCodeEditorSQL.

Definition at line 25 of file qgscodeeditorsql.cpp.

Member Function Documentation

◆ setFields()

void QgsCodeEditorSQL::setFields ( const QgsFields fields)

Set field names to be added to the lexer API.

QGIS 3.14

Definition at line 77 of file qgscodeeditorsql.cpp.

The documentation for this class was generated from the following files: