From 0b2562d45916cb3a6db5a5b73ce1b52e9628aff8 Mon Sep 17 00:00:00 2001 From: lanckmann Date: Tue, 19 Aug 2025 12:46:10 -0400 Subject: [PATCH] Fix SIP file documentation format for zoomToFeatureRequested signal --- .../gui/auto_additions/qgsattributetableview.py | 4 ++-- .../attributetable/qgsattributetableview.sip.in | 13 ++++++++----- .../attributetable/qgsattributetableview.sip.in | 13 ++++++++----- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/python/PyQt6/gui/auto_additions/qgsattributetableview.py b/python/PyQt6/gui/auto_additions/qgsattributetableview.py index de6124d161a..700a6b4d170 100644 --- a/python/PyQt6/gui/auto_additions/qgsattributetableview.py +++ b/python/PyQt6/gui/auto_additions/qgsattributetableview.py @@ -1,9 +1,9 @@ # The following has been generated automatically from src/gui/attributetable/qgsattributetableview.h try: - QgsAttributeTableView.__attribute_docs__ = {'willShowContextMenu': 'Emitted in order to provide a hook to add additional* menu entries to\nthe context menu.\n\n:param menu: If additional QMenuItems are added, they will show up in\n the context menu.\n:param atIndex: The QModelIndex, to which the context menu belongs.\n Relative to the source model. In most cases, this will\n be a :py:class:`QgsAttributeTableFilterModel`\n', 'columnResized': 'Emitted when a column in the view has been resized.\n\n:param column: column index (starts at 0)\n:param width: new width in pixel\n', 'finished': '.. deprecated:: 3.40\n\n No longer used.\n'} + QgsAttributeTableView.__attribute_docs__ = {'willShowContextMenu': 'Emitted in order to provide a hook to add additional* menu entries to\nthe context menu.\n\n:param menu: If additional QMenuItems are added, they will show up in\n the context menu.\n:param atIndex: The QModelIndex, to which the context menu belongs.\n Relative to the source model. In most cases, this will\n be a :py:class:`QgsAttributeTableFilterModel`\n', 'columnResized': 'Emitted when a column in the view has been resized.\n\n:param column: column index (starts at 0)\n:param width: new width in pixel\n', 'finished': '.. deprecated:: 3.40\n\n No longer used.\n', 'zoomToFeatureRequested': 'Emitted when a row header is double-clicked to request zooming to the\nfeature.\n\n:param fid: the feature ID of the double-clicked row\n\n.. versionadded:: 3.46\n'} QgsAttributeTableView.__virtual_methods__ = ['setModel', 'selectRow', '_q_selectRow'] QgsAttributeTableView.__overridden_methods__ = ['eventFilter', 'mousePressEvent', 'mouseReleaseEvent', 'mouseMoveEvent', 'keyPressEvent', 'contextMenuEvent', 'closeEvent', 'selectAll'] - QgsAttributeTableView.__signal_arguments__ = {'willShowContextMenu': ['menu: QMenu', 'atIndex: QModelIndex'], 'columnResized': ['column: int', 'width: int']} + QgsAttributeTableView.__signal_arguments__ = {'willShowContextMenu': ['menu: QMenu', 'atIndex: QModelIndex'], 'columnResized': ['column: int', 'width: int'], 'zoomToFeatureRequested': ['fid: QgsFeatureId']} QgsAttributeTableView.__group__ = ['attributetable'] except (NameError, AttributeError): pass diff --git a/python/PyQt6/gui/auto_generated/attributetable/qgsattributetableview.sip.in b/python/PyQt6/gui/auto_generated/attributetable/qgsattributetableview.sip.in index b00c56779a9..79f1862efd3 100644 --- a/python/PyQt6/gui/auto_generated/attributetable/qgsattributetableview.sip.in +++ b/python/PyQt6/gui/auto_generated/attributetable/qgsattributetableview.sip.in @@ -172,12 +172,15 @@ Emitted when a column in the view has been resized. No longer used. %End - /** - * Emitted when a row header is double-clicked to request zooming to the feature. - * \param fid the feature ID of the double-clicked row - * \since QGIS 3.46 - */ void zoomToFeatureRequested( QgsFeatureId fid ); +%Docstring +Emitted when a row header is double-clicked to request zooming to the +feature. + +:param fid: the feature ID of the double-clicked row + +.. versionadded:: 3.46 +%End public slots: void repaintRequested( const QModelIndexList &indexes ); diff --git a/python/gui/auto_generated/attributetable/qgsattributetableview.sip.in b/python/gui/auto_generated/attributetable/qgsattributetableview.sip.in index b00c56779a9..79f1862efd3 100644 --- a/python/gui/auto_generated/attributetable/qgsattributetableview.sip.in +++ b/python/gui/auto_generated/attributetable/qgsattributetableview.sip.in @@ -172,12 +172,15 @@ Emitted when a column in the view has been resized. No longer used. %End - /** - * Emitted when a row header is double-clicked to request zooming to the feature. - * \param fid the feature ID of the double-clicked row - * \since QGIS 3.46 - */ void zoomToFeatureRequested( QgsFeatureId fid ); +%Docstring +Emitted when a row header is double-clicked to request zooming to the +feature. + +:param fid: the feature ID of the double-clicked row + +.. versionadded:: 3.46 +%End public slots: void repaintRequested( const QModelIndexList &indexes );