Skip to content
Permalink
Browse files

Change canCommitChanges to allowCommit flag

  • Loading branch information
m-kuhn committed Sep 26, 2018
1 parent cda4950 commit 0e3280768c12b1446d99c86587adc4401500cda3
Showing with 4 additions and 4 deletions.
  1. +2 −2 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +2 −2 src/core/qgsvectorlayer.h
@@ -2239,7 +2239,7 @@ Configuration and logic to apply automatically on any edit happening on this lay
.. versionadded:: 3.4
%End

bool allowCommit()() const;
bool allowCommit() const;
%Docstring
Controls, if the layer is allowed to commit changes. If this is set to false
it will not be possible to commit changes on this layer. This can be used to
@@ -2258,7 +2258,7 @@ When calling :py:func:`commitChanges`, this flag is checked just after the
.. versionadded:: 3.4
%End

void setAllowCommit()( bool allowCommit() );
void setAllowCommit( bool allowCommit );
%Docstring
Controls, if the layer is allowed to commit changes. If this is set to false
it will not be possible to commit changes on this layer. This can be used to
@@ -2026,7 +2026,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*
* \since QGIS 3.4
*/
bool allowCommit()() const;
bool allowCommit() const;

/**
* Controls, if the layer is allowed to commit changes. If this is set to false
@@ -2044,7 +2044,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*
* \since QGIS 3.4
*/
void setAllowCommit()( bool allowCommit() );
void setAllowCommit( bool allowCommit );

public slots:

0 comments on commit 0e32807

Please sign in to comment.
You can’t perform that action at this time.