mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-29 00:06:58 -05:00
Fix misleading docs that is only valid if edit buffer is used (so does not work in transaction mode)
Long story short, the `layer.committedFeaturesAdded` signal is not fired after `layer.commitChanges()` when in transaction mode. If the layer is using the `QgsVectorLayerEditBuffer` the `commitedFeaturesAdded` signal is fired. But if transaction is used and the `layer.editBuffer()` returns `QgsVectorLayerEditPasstrough`, then there is no signal. The `QgsVectorLayerEditPasstrough` class is quite empty and lacking implementation of these events, so they don't work on layers in a transaction group.
This commit is contained in:
parent
7b5cd9bcd3
commit
527359bc7c
@ -2891,27 +2891,27 @@ Note that at this point the geometry change is not yet saved to the provider.
|
|||||||
|
|
||||||
void committedAttributesDeleted( const QString &layerId, const QgsAttributeList &deletedAttributes );
|
void committedAttributesDeleted( const QString &layerId, const QgsAttributeList &deletedAttributes );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when attributes are deleted from the provider
|
Emitted when attributes are deleted from the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
void committedAttributesAdded( const QString &layerId, const QList<QgsField> &addedAttributes );
|
void committedAttributesAdded( const QString &layerId, const QList<QgsField> &addedAttributes );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when attributes are added to the provider
|
Emitted when attributes are added to the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
void committedFeaturesAdded( const QString &layerId, const QgsFeatureList &addedFeatures );
|
void committedFeaturesAdded( const QString &layerId, const QgsFeatureList &addedFeatures );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when features are added to the provider
|
Emitted when features are added to the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
void committedFeaturesRemoved( const QString &layerId, const QgsFeatureIds &deletedFeatureIds );
|
void committedFeaturesRemoved( const QString &layerId, const QgsFeatureIds &deletedFeatureIds );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when features are deleted from the provider
|
Emitted when features are deleted from the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
void committedAttributeValuesChanges( const QString &layerId, const QgsChangedAttributesMap &changedAttributesValues );
|
void committedAttributeValuesChanges( const QString &layerId, const QgsChangedAttributesMap &changedAttributesValues );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when attribute value changes are saved to the provider
|
Emitted when attribute value changes are saved to the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
void committedGeometriesChanges( const QString &layerId, const QgsGeometryMap &changedGeometries );
|
void committedGeometriesChanges( const QString &layerId, const QgsGeometryMap &changedGeometries );
|
||||||
%Docstring
|
%Docstring
|
||||||
Emitted when geometry changes are saved to the provider
|
Emitted when geometry changes are saved to the provider if not in transaction mode.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
void labelingFontNotFound( QgsVectorLayer *layer, const QString &fontfamily );
|
void labelingFontNotFound( QgsVectorLayer *layer, const QString &fontfamily );
|
||||||
|
|||||||
@ -2680,17 +2680,17 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
|
|||||||
*/
|
*/
|
||||||
void geometryChanged( QgsFeatureId fid, const QgsGeometry &geometry );
|
void geometryChanged( QgsFeatureId fid, const QgsGeometry &geometry );
|
||||||
|
|
||||||
//! Emitted when attributes are deleted from the provider
|
//! Emitted when attributes are deleted from the provider if not in transaction mode.
|
||||||
void committedAttributesDeleted( const QString &layerId, const QgsAttributeList &deletedAttributes );
|
void committedAttributesDeleted( const QString &layerId, const QgsAttributeList &deletedAttributes );
|
||||||
//! Emitted when attributes are added to the provider
|
//! Emitted when attributes are added to the provider if not in transaction mode.
|
||||||
void committedAttributesAdded( const QString &layerId, const QList<QgsField> &addedAttributes );
|
void committedAttributesAdded( const QString &layerId, const QList<QgsField> &addedAttributes );
|
||||||
//! Emitted when features are added to the provider
|
//! Emitted when features are added to the provider if not in transaction mode.
|
||||||
void committedFeaturesAdded( const QString &layerId, const QgsFeatureList &addedFeatures );
|
void committedFeaturesAdded( const QString &layerId, const QgsFeatureList &addedFeatures );
|
||||||
//! Emitted when features are deleted from the provider
|
//! Emitted when features are deleted from the provider if not in transaction mode.
|
||||||
void committedFeaturesRemoved( const QString &layerId, const QgsFeatureIds &deletedFeatureIds );
|
void committedFeaturesRemoved( const QString &layerId, const QgsFeatureIds &deletedFeatureIds );
|
||||||
//! Emitted when attribute value changes are saved to the provider
|
//! Emitted when attribute value changes are saved to the provider if not in transaction mode.
|
||||||
void committedAttributeValuesChanges( const QString &layerId, const QgsChangedAttributesMap &changedAttributesValues );
|
void committedAttributeValuesChanges( const QString &layerId, const QgsChangedAttributesMap &changedAttributesValues );
|
||||||
//! Emitted when geometry changes are saved to the provider
|
//! Emitted when geometry changes are saved to the provider if not in transaction mode.
|
||||||
void committedGeometriesChanges( const QString &layerId, const QgsGeometryMap &changedGeometries );
|
void committedGeometriesChanges( const QString &layerId, const QgsGeometryMap &changedGeometries );
|
||||||
|
|
||||||
//! Emitted when the font family defined for labeling layer is not found on system
|
//! Emitted when the font family defined for labeling layer is not found on system
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user