Skip to content

Commit

Permalink
Update dox, bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 11, 2018
1 parent b88c2f4 commit 3b89ee0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 9 additions & 1 deletion python/core/auto_generated/qgsproject.sip.in
Expand Up @@ -599,14 +599,22 @@ Make sure that this is only called when all layers are not in edit mode.
%End


QgsTransactionGroup *transactionGroup( const QString &providerKey, const QString &connString );
%Docstring
Get a transaction group from a provider key and connection string.

Returns None if a matching transaction group is not available.

.. versionadded:: 3.2
%End

bool evaluateDefaultValues() const;
%Docstring
Should default values be evaluated on provider side when requested and not when committed.

.. versionadded:: 2.16
%End


void setEvaluateDefaultValues( bool evaluateDefaultValues );
%Docstring
Defines if default values should be evaluated on provider side when requested and not when committed.
Expand Down
7 changes: 3 additions & 4 deletions src/core/qgsproject.h
Expand Up @@ -585,12 +585,11 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera
QMap< QPair< QString, QString>, QgsTransactionGroup *> transactionGroups() SIP_SKIP;

/**
* Get a transaction group by getting provider & connection string.
* Returns null pointer if transaction group is not available.
* Get a transaction group from a provider key and connection string.
*
* providerKey, connString -> transactionGroup
* Returns nullptr if a matching transaction group is not available.
*
* \since QGIS 3.0
* \since QGIS 3.2
*/
QgsTransactionGroup *transactionGroup( const QString &providerKey, const QString &connString );

Expand Down

0 comments on commit 3b89ee0

Please sign in to comment.