A text editor based on QScintilla2.
More...
#include <qgscodeeditor.h>
A text editor based on QScintilla2.
- Since
- QGIS 2.6
- Note
- may not be available in Python bindings, depending on platform support
Definition at line 38 of file qgscodeeditor.h.
◆ QgsCodeEditor()
QgsCodeEditor::QgsCodeEditor |
( |
QWidget * |
parent = nullptr , |
|
|
const QString & |
title = QString() , |
|
|
bool |
folding = false , |
|
|
bool |
margin = false |
|
) |
| |
Construct a new code editor.
- Parameters
-
parent | The parent QWidget |
title | The title to show in the code editor dialog |
folding | false: Enable folding for code editor |
margin | false: Enable margin for code editor |
- Since
- QGIS 2.6
Definition at line 25 of file qgscodeeditor.cpp.
◆ focusOutEvent()
void QgsCodeEditor::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
overrideprotected |
◆ foldingVisible()
bool QgsCodeEditor::foldingVisible |
( |
| ) |
|
|
inline |
◆ getMonospaceFont()
QFont QgsCodeEditor::getMonospaceFont |
( |
| ) |
|
|
protected |
◆ insertText()
void QgsCodeEditor::insertText |
( |
const QString & |
text | ) |
|
Insert text at cursor position, or replace any selected text if user has made a selection.
- Parameters
-
text | The text to be inserted |
Definition at line 149 of file qgscodeeditor.cpp.
◆ isFixedPitch()
bool QgsCodeEditor::isFixedPitch |
( |
const QFont & |
font | ) |
|
|
protected |
◆ keyPressEvent()
void QgsCodeEditor::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ marginVisible()
bool QgsCodeEditor::marginVisible |
( |
| ) |
|
|
inline |
◆ setFoldingVisible()
void QgsCodeEditor::setFoldingVisible |
( |
bool |
folding | ) |
|
Set folding visible state.
- Parameters
-
folding | Set folding in the editor |
Definition at line 135 of file qgscodeeditor.cpp.
◆ setMarginVisible()
void QgsCodeEditor::setMarginVisible |
( |
bool |
margin | ) |
|
Set margin visible state.
- Parameters
-
margin | Set margin in the editor |
Definition at line 115 of file qgscodeeditor.cpp.
◆ setTitle()
void QgsCodeEditor::setTitle |
( |
const QString & |
title | ) |
|
The documentation for this class was generated from the following files: