From 02d9cc2af2097b12a90ca25c8944ca9a148e782f Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Wed, 14 Aug 2024 14:45:48 +1000 Subject: [PATCH] Sipify --- python/PyQt6/gui/auto_additions/qgsrichtexteditor.py | 7 +++++++ python/gui/auto_additions/qgsrichtexteditor.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/python/PyQt6/gui/auto_additions/qgsrichtexteditor.py b/python/PyQt6/gui/auto_additions/qgsrichtexteditor.py index b7c9c9b4c11..d55af00a62c 100644 --- a/python/PyQt6/gui/auto_additions/qgsrichtexteditor.py +++ b/python/PyQt6/gui/auto_additions/qgsrichtexteditor.py @@ -1,4 +1,11 @@ # The following has been generated automatically from src/gui/qgsrichtexteditor.h +# 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" +QgsRichTextEditor.Mode.__doc__ = "Widget modes.\n\n.. versionadded:: 3.40\n\n" + '* ``QTextDocument``: ' + QgsRichTextEditor.Mode.QTextDocument.__doc__ + '\n' + '* ``QgsTextRenderer``: ' + QgsRichTextEditor.Mode.QgsTextRenderer.__doc__ + '\n' + '* ``PlainText``: ' + QgsRichTextEditor.Mode.PlainText.__doc__ +# -- +QgsRichTextEditor.Mode.baseClass = QgsRichTextEditor try: QgsRichTextEditor.__attribute_docs__ = {'textChanged': 'Emitted when the text contents are changed.\n\n.. versionadded:: 3.26\n'} except NameError: diff --git a/python/gui/auto_additions/qgsrichtexteditor.py b/python/gui/auto_additions/qgsrichtexteditor.py index b7c9c9b4c11..d55af00a62c 100644 --- a/python/gui/auto_additions/qgsrichtexteditor.py +++ b/python/gui/auto_additions/qgsrichtexteditor.py @@ -1,4 +1,11 @@ # The following has been generated automatically from src/gui/qgsrichtexteditor.h +# 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" +QgsRichTextEditor.Mode.__doc__ = "Widget modes.\n\n.. versionadded:: 3.40\n\n" + '* ``QTextDocument``: ' + QgsRichTextEditor.Mode.QTextDocument.__doc__ + '\n' + '* ``QgsTextRenderer``: ' + QgsRichTextEditor.Mode.QgsTextRenderer.__doc__ + '\n' + '* ``PlainText``: ' + QgsRichTextEditor.Mode.PlainText.__doc__ +# -- +QgsRichTextEditor.Mode.baseClass = QgsRichTextEditor try: QgsRichTextEditor.__attribute_docs__ = {'textChanged': 'Emitted when the text contents are changed.\n\n.. versionadded:: 3.26\n'} except NameError: