Skip to content

Commit 08cb2d7

Browse files
committedSep 29, 2017
[FEATURE] Default values on update
Add an option to add default values on update of attributes or geometry. This can be seen as a "derived value" that will be saved to the database (like area of a polygon) or as a means to track last_modified dates etc. See #5218
1 parent e0cdb18 commit 08cb2d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎python/core/qgsdefaultvalue.sip‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class QgsDefaultValue
4141
QgsDefaultValue( const QString &expression = QString(), bool applyOnUpdate = false );
4242
%Docstring
4343
Create a new default value with the given ``expression`` and ``applyOnUpdate`` flag.
44+
.. seealso:: QgsVectorLayer.setDefaultValueDefinition
4445
%End
4546
bool operator==( const QgsDefaultValue &other ) const;
4647

‎src/core/qgsdefaultvalue.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class CORE_EXPORT QgsDefaultValue
5555

5656
/**
5757
* Create a new default value with the given \a expression and \a applyOnUpdate flag.
58+
* \see QgsVectorLayer::setDefaultValueDefinition
5859
*/
5960
QgsDefaultValue( const QString &expression = QString(), bool applyOnUpdate = false );
6061
bool operator==( const QgsDefaultValue &other ) const;

0 commit comments

Comments
 (0)
Please sign in to comment.