From b5d9ccdf1fbba700ce4fd90e2a8a345b5c4dc60d Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 3 Jul 2020 09:17:41 +0200 Subject: [PATCH] [dox] fix code formatting fixes https://github.com/qgis/pyqgis/issues/45 --- python/core/auto_generated/qgsactionscoperegistry.sip.in | 6 +++--- src/core/qgsactionscoperegistry.h | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/python/core/auto_generated/qgsactionscoperegistry.sip.in b/python/core/auto_generated/qgsactionscoperegistry.sip.in index a1eb5329ca2..9d389c0710c 100644 --- a/python/core/auto_generated/qgsactionscoperegistry.sip.in +++ b/python/core/auto_generated/qgsactionscoperegistry.sip.in @@ -17,9 +17,9 @@ at runtime by plugins or custom applications. To get access use the QgsApplication: -``` -:py:func:`QgsApplication.actionScopeRegistry()` -``` +.. code-block:: python + + QgsApplication.actionScopeRegistry() .. versionadded:: 3.0 %End diff --git a/src/core/qgsactionscoperegistry.h b/src/core/qgsactionscoperegistry.h index eb12de9e602..014d43bcc54 100644 --- a/src/core/qgsactionscoperegistry.h +++ b/src/core/qgsactionscoperegistry.h @@ -30,9 +30,13 @@ * * To get access use the QgsApplication: * - * ``` + * \code{.cpp} * QgsApplication::actionScopeRegistry() - * ``` + * \endcode + * + * \code{.py} + * QgsApplication.actionScopeRegistry() + * \endcode * * \since QGIS 3.0 */