Skip to content

Commit

Permalink
Fix tests and reference image
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk authored and nyalldawson committed Apr 14, 2020
1 parent 0037e56 commit 7c1d1fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions python/core/auto_generated/qgspropertycollection.sip.in
Expand Up @@ -238,12 +238,9 @@ Returns ``True`` if preparation was successful.
Returns the set of any fields referenced by the active properties from the collection.

:param context: expression context the properties will be evaluated against.

.. note::

The optional argument ignoreContext has been added in QGIS 3.14. When set to true,
even fields not set in context's fields() will be reported - this is useful e.g. with vector tiles
where the actual available field names may not be known beforehand.
:param ignoreContext: This parameter has been added in QGIS 3.14. When set to true, even fields not set
in context's fields() will be reported - this is useful e.g. with vector tiles
where the actual available field names may not be known beforehand.
%End

virtual bool isActive( int key ) const = 0;
Expand Down Expand Up @@ -550,6 +547,9 @@ Returns the calculated value of the highest priority property with the specified
Returns the set of any fields referenced by the active properties from the stack.

:param context: expression context the properties will be evaluated against.
:param ignoreContext: This parameter has been added in QGIS 3.14. When set to true, even fields not set
in context's fields() will be reported - this is useful e.g. with vector tiles
where the actual available field names may not be known beforehand.
%End
virtual bool prepare( const QgsExpressionContext &context = QgsExpressionContext() ) const;

Expand Down
9 changes: 6 additions & 3 deletions src/core/qgspropertycollection.h
Expand Up @@ -207,9 +207,9 @@ class CORE_EXPORT QgsAbstractPropertyCollection
/**
* Returns the set of any fields referenced by the active properties from the collection.
* \param context expression context the properties will be evaluated against.
* \note The optional argument ignoreContext has been added in QGIS 3.14. When set to true,
* even fields not set in context's fields() will be reported - this is useful e.g. with vector tiles
* where the actual available field names may not be known beforehand.
* \param ignoreContext This parameter has been added in QGIS 3.14. When set to true, even fields not set
* in context's fields() will be reported - this is useful e.g. with vector tiles
* where the actual available field names may not be known beforehand.
*/
virtual QSet< QString > referencedFields( const QgsExpressionContext &context = QgsExpressionContext(), bool ignoreContext = false ) const = 0;

Expand Down Expand Up @@ -478,6 +478,9 @@ class CORE_EXPORT QgsPropertyCollectionStack : public QgsAbstractPropertyCollect
/**
* Returns the set of any fields referenced by the active properties from the stack.
* \param context expression context the properties will be evaluated against.
* \param ignoreContext This parameter has been added in QGIS 3.14. When set to true, even fields not set
* in context's fields() will be reported - this is useful e.g. with vector tiles
* where the actual available field names may not be known beforehand.
*/
QSet< QString > referencedFields( const QgsExpressionContext &context = QgsExpressionContext(), bool ignoreContext = false ) const override;
bool prepare( const QgsExpressionContext &context = QgsExpressionContext() ) const override;
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsvectortilelayer.cpp
Expand Up @@ -146,7 +146,7 @@ void TestQgsVectorTileLayer::test_labeling()

QgsPalLayerSettings labelSettings;
labelSettings.drawLabels = true;
labelSettings.fieldName = "name";
labelSettings.fieldName = "name:en";
labelSettings.placement = QgsPalLayerSettings::OverPoint;
labelSettings.setFormat( format );

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c1d1fe

Please sign in to comment.