Skip to content

Commit

Permalink
since information
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Dec 20, 2019
1 parent 1f1a3fe commit ea912a1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/core/auto_generated/qgsfieldformatter.sip.in
Expand Up @@ -140,11 +140,15 @@ according to the settings in the ``config``
Flags flags() const;
%Docstring
Returns the flags

.. versionadded:: 3.12
%End

void setFlags( const Flags &flags );
%Docstring
Sets the ``flags``

.. versionadded:: 3.12
%End

};
Expand Down
4 changes: 4 additions & 0 deletions python/gui/auto_generated/qgsexpressionbuilderwidget.sip.in
Expand Up @@ -340,13 +340,17 @@ provide them (eg. RelationReference).
Load used sample values into the sample value area.
Only the used ones. Without available values, even if the
formatter can provide them (eg. RelationReference).

.. versionadded:: 3.12
%End

void loadAllUsedValues();
%Docstring
Load all unique values from the set layer into the sample area.
Only the used ones. Without available values, even if the
formatter can provide them (eg. RelationReference).

.. versionadded:: 3.12
%End

void autosave();
Expand Down
10 changes: 9 additions & 1 deletion src/core/qgsfieldformatter.h
Expand Up @@ -80,7 +80,11 @@ class CORE_EXPORT QgsFieldFormatter

virtual ~QgsFieldFormatter() = default;

//! Abilities of the formatter
/**
* Flags for the abilities of the formatter
*
* \since QGIS 3.12
*/
enum Flag
{
CanProvideAvailableValues = 1 //!< Can provide possible values
Expand Down Expand Up @@ -160,11 +164,15 @@ class CORE_EXPORT QgsFieldFormatter

/**
* Returns the flags
*
* \since QGIS 3.12
*/
Flags flags() const { return mFlags; }

/**
* Sets the \a flags
*
* \since QGIS 3.12
*/
void setFlags( const Flags &flags );

Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.h
Expand Up @@ -341,13 +341,17 @@ class GUI_EXPORT QgsExpressionBuilderWidget : public QWidget, private Ui::QgsExp
* Load used sample values into the sample value area.
* Only the used ones. Without available values, even if the
* formatter can provide them (eg. RelationReference).
*
* \since QGIS 3.12
*/
void loadSampleUsedValues();

/**
* Load all unique values from the set layer into the sample area.
* Only the used ones. Without available values, even if the
* formatter can provide them (eg. RelationReference).
*
* \since QGIS 3.12
*/
void loadAllUsedValues();

Expand Down

0 comments on commit ea912a1

Please sign in to comment.