Skip to content

Commit

Permalink
fix docu problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasMizera authored and wonder-sk committed Sep 11, 2020
1 parent 4c86bc0 commit 7c005d7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/quickgui/qgsquickfeatureslistmodel.h
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7c005d7

Please sign in to comment.