Skip to content

Commit

Permalink
Doxygen fixes
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 7c1d1fe commit 1f55462
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/labeling/qgsvectorlayerlabelprovider.h
Expand Up @@ -107,6 +107,12 @@ class CORE_EXPORT QgsVectorLayerLabelProvider : public QgsAbstractLabelProvider
*/
const QgsPalLayerSettings &settings() const;

/**
* Sets fields of this label provider. Normally this is not needed, but when used for vector tiles,
* fields are not known at the time of creation of label providers. It should be called before
* a call to prepare() which uses the list of fields.
* \since QGIS 3.14
*/
void setFields( const QgsFields &fields ) { mFields = fields; }

protected:
Expand Down
3 changes: 3 additions & 0 deletions src/core/vectortile/qgsvectortilebasiclabeling.h
Expand Up @@ -137,7 +137,9 @@ class CORE_EXPORT QgsVectorTileBasicLabeling : public QgsVectorTileLabeling
class QgsVectorTileBasicLabelProvider : public QgsVectorTileLabelProvider
{
public:
//! Constructs a label provider for the given vector tile layer and using styling from QgsVectorTileBasicLabeling
QgsVectorTileBasicLabelProvider( QgsVectorTileLayer *layer, const QList<QgsVectorTileBasicLabelingStyle> &styles );

QList<QgsAbstractLabelProvider *> subProviders() override;
bool prepare( QgsRenderContext &context, QSet<QString> &attributeNames ) override;
void registerTileFeatures( const QgsVectorTileRendererData &tile, QgsRenderContext &context ) override;
Expand All @@ -155,6 +157,7 @@ class QgsVectorTileBasicLabelProvider : public QgsVectorTileLabelProvider
QMap<QString, QSet<QString> > mRequiredFields;
};

/// @endcond
#endif


Expand Down
1 change: 1 addition & 0 deletions src/core/vectortile/qgsvectortilelabeling.h
Expand Up @@ -33,6 +33,7 @@ class QgsVectorTileRendererData;
class QgsVectorTileLabelProvider : public QgsVectorLayerLabelProvider
{
public:
//! Constructs base label provider class for the given vector tile layer
explicit QgsVectorTileLabelProvider( QgsVectorTileLayer *layer );

//! Returns field names for each sub-layer that are required for labeling
Expand Down

0 comments on commit 1f55462

Please sign in to comment.