A text editor based on QScintilla2.
More...
#include <qgscodeeditor.h>
A text editor based on QScintilla2.
- Note
- added in 2.6
-
may not be available in Python bindings, depending on platform support
Definition at line 32 of file qgscodeeditor.h.
◆ QgsCodeEditor()
QgsCodeEditor::QgsCodeEditor |
( |
QWidget * |
parent = nullptr , |
|
|
const QString & |
title = "" , |
|
|
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 |
- Note
- added in 2.6
Definition at line 25 of file qgscodeeditor.cpp.
◆ ~QgsCodeEditor()
QgsCodeEditor::~QgsCodeEditor |
( |
| ) |
|
◆ focusOutEvent()
void QgsCodeEditor::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
overrideprotected |
◆ foldingVisible()
bool QgsCodeEditor::foldingVisible |
( |
| ) |
|
|
inline |
◆ getMonospaceFont()
QFont QgsCodeEditor::getMonospaceFont |
( |
| ) |
|
|
protected |
◆ insertText()
void QgsCodeEditor::insertText |
( |
const QString & |
theText | ) |
|
Insert text at cursor position, or replace any selected text if user has made a selection.
- Parameters
-
theText | The text to be inserted |
Definition at line 154 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 140 of file qgscodeeditor.cpp.
◆ setMarginVisible()
void QgsCodeEditor::setMarginVisible |
( |
bool |
margin | ) |
|
Set margin visible state.
- Parameters
-
margin | Set margin in the editor |
Definition at line 120 of file qgscodeeditor.cpp.
◆ setTitle()
void QgsCodeEditor::setTitle |
( |
const QString & |
title | ) |
|
The documentation for this class was generated from the following files: