Fix API typo

This commit is contained in:
Matthias Kuhn 2017-10-29 00:03:51 +02:00
parent 28f2722650
commit 37e9272f3d
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ class QgsTransaction : QObject /Abstract/
and all layers need to be in read-only mode for a transaction to be committed and all layers need to be in read-only mode for a transaction to be committed
or rolled back. or rolled back.
Layers cannot only be included in one transaction at a time. Layers can only be included in one transaction at a time.
When editing layers which are part of a transaction group, all changes are When editing layers which are part of a transaction group, all changes are
sent directly to the data provider (bypassing the undo/redo stack), and the sent directly to the data provider (bypassing the undo/redo stack), and the
@ -105,7 +105,7 @@ class QgsTransaction : QObject /Abstract/
static bool supportsTransaction( const QgsVectorLayer *layer ); static bool supportsTransaction( const QgsVectorLayer *layer );
%Docstring %Docstring
Checks if a the provider of a given ``layer`` supports transactions. Checks if the provider of a given ``layer`` supports transactions.
:rtype: bool :rtype: bool
%End %End

View File

@ -40,7 +40,7 @@ class QgsVectorLayer;
* and all layers need to be in read-only mode for a transaction to be committed * and all layers need to be in read-only mode for a transaction to be committed
* or rolled back. * or rolled back.
* *
* Layers cannot only be included in one transaction at a time. * Layers can only be included in one transaction at a time.
* *
* When editing layers which are part of a transaction group, all changes are * When editing layers which are part of a transaction group, all changes are
* sent directly to the data provider (bypassing the undo/redo stack), and the * sent directly to the data provider (bypassing the undo/redo stack), and the
@ -115,7 +115,7 @@ class CORE_EXPORT QgsTransaction : public QObject SIP_ABSTRACT
virtual bool executeSql( const QString &sql, QString &error SIP_OUT, bool isDirty = false ) = 0; virtual bool executeSql( const QString &sql, QString &error SIP_OUT, bool isDirty = false ) = 0;
/** /**
* Checks if a the provider of a given \a layer supports transactions. * Checks if the provider of a given \a layer supports transactions.
*/ */
static bool supportsTransaction( const QgsVectorLayer *layer ); static bool supportsTransaction( const QgsVectorLayer *layer );