Skip to content

Commit

Permalink
Change canCommitChanges to allowCommit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 26, 2018
1 parent cda4950 commit 0e32807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.h
Expand Up @@ -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
Expand All @@ -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:

Expand Down

0 comments on commit 0e32807

Please sign in to comment.