Skip to content
Permalink
Browse files

fix docu problems

  • Loading branch information
tomasMizera authored and wonder-sk committed Sep 11, 2020
1 parent 4c86bc0 commit 7c005d7c079ca3e5bccb1f49efbafc83806e7b19
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/quickgui/qgsquickfeatureslistmodel.h
@@ -138,16 +138,21 @@ class QUICK_EXPORT QgsQuickFeaturesListModel : public QAbstractListModel
int featuresCount() const;
//! Returns type of this model
modelTypes modelType() const;
//! Getter for filter expression, empty string represents no filter
//! Returns filter expression, empty string represents no filter
QString filterExpression() const;
//! Setter for filter expression, upon setting also reloads features from current layer with new filter

/**
* \brief setFilterExpression Sets filter expression, upon setting also reloads features from current layer with new filter
* \param filterExpression QString to set, empty string represents no filter
*/
void setFilterExpression( const QString &filterExpression );

public slots:
//! Sets corresponding type of model from modelTypes enum
void setModelType( modelTypes modelType );

signals:

/**
* \brief featuresCountChanged Signal emitted when features are reloaded or layer is changed
* \param featuresCount number of features in layer, not number of loaded features
@@ -196,9 +201,11 @@ class QUICK_EXPORT QgsQuickFeaturesListModel : public QAbstractListModel
//! Pointer to layer that is currently loaded
QgsVectorLayer *mCurrentLayer = nullptr;

//! Data from config for value relations
//! mCache is not affected by reloading features when filter expression is changed and
//! is kept until next call of emptyData.
/**
* Data from config for value relations
* mCache is not affected by reloading features when filter expression is changed and
* is kept until next call of emptyData.
*/
QgsValueRelationFieldFormatter::ValueRelationCache mCache;

//! Type of a model - Listing (browsing) features or use in value relation widget

0 comments on commit 7c005d7

Please sign in to comment.
You can’t perform that action at this time.