2024-08-13 13:47:46 +10:00
|
|
|
# The following has been generated automatically from src/gui/qgsrichtexteditor.h
|
2024-08-14 14:45:48 +10:00
|
|
|
# monkey patching scoped based enum
|
|
|
|
QgsRichTextEditor.Mode.QTextDocument.__doc__ = "Default mode, exposes the Qt supported HTML/CSS subset"
|
|
|
|
QgsRichTextEditor.Mode.QgsTextRenderer.__doc__ = "QGIS text renderer mode, exposes the HTML/CSS subset supported by the QgsTextRenderer class"
|
|
|
|
QgsRichTextEditor.Mode.PlainText.__doc__ = "Plain text mode"
|
2024-08-31 18:05:36 +10:00
|
|
|
QgsRichTextEditor.Mode.__doc__ = """Widget modes.
|
|
|
|
|
|
|
|
.. versionadded:: 3.40
|
|
|
|
|
|
|
|
* ``QTextDocument``: Default mode, exposes the Qt supported HTML/CSS subset
|
|
|
|
* ``QgsTextRenderer``: QGIS text renderer mode, exposes the HTML/CSS subset supported by the QgsTextRenderer class
|
|
|
|
* ``PlainText``: Plain text mode
|
|
|
|
|
|
|
|
"""
|
2024-08-14 14:45:48 +10:00
|
|
|
# --
|
|
|
|
QgsRichTextEditor.Mode.baseClass = QgsRichTextEditor
|
2024-08-14 09:45:06 +10:00
|
|
|
try:
|
|
|
|
QgsRichTextEditor.__attribute_docs__ = {'textChanged': 'Emitted when the text contents are changed.\n\n.. versionadded:: 3.26\n'}
|
2024-12-03 07:47:10 +00:00
|
|
|
except (NameError, AttributeError):
|
2024-08-14 09:45:06 +10:00
|
|
|
pass
|