A text editor based on QScintilla2.
More...
#include <qgscodeeditor.h>
A text editor based on QScintilla2.
- Note
- may not be available in Python bindings, depending on platform support
- Since
- QGIS 2.6
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 27 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 172 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 159 of file qgscodeeditor.cpp.
◆ setMarginVisible()
void QgsCodeEditor::setMarginVisible |
( |
bool |
margin | ) |
|
Set margin visible state.
- Parameters
-
margin | Set margin in the editor |
Definition at line 141 of file qgscodeeditor.cpp.
◆ setTitle()
void QgsCodeEditor::setTitle |
( |
const QString & |
title | ) |
|
The documentation for this class was generated from the following files: