mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Fix build errors and update Python bindings
This commit is contained in:
parent
28a3a8779c
commit
f939f8f554
@ -172,6 +172,13 @@ 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 );
|
||||
|
||||
public slots:
|
||||
void repaintRequested( const QModelIndexList &indexes );
|
||||
void repaintRequested();
|
||||
|
@ -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
|
||||
|
@ -172,6 +172,13 @@ 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 );
|
||||
|
||||
public slots:
|
||||
void repaintRequested( const QModelIndexList &indexes );
|
||||
void repaintRequested();
|
||||
|
@ -92,7 +92,7 @@ bool QgsAttributeTableView::eventFilter( QObject *object, QEvent *event )
|
||||
const QModelIndex index = mFilterModel->index( row, 0 );
|
||||
if ( index.isValid() )
|
||||
{
|
||||
const QgsFeatureId fid = mFilterModel->rowToId( index.row() );
|
||||
const QgsFeatureId fid = mFilterModel->rowToId( index );
|
||||
emit zoomToFeatureRequested( fid );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user