A container class storing a list of display filters. More...
|  Header |  #include <Display | 
|  Since |  Esri | 
|  Inherits |  QAbstract | 
This class was introduced in Esri::ArcGISRuntime 100.13.
Public Types
| enum | Display | 
Public Functions
| virtual | ~ | 
| void | append( | 
| void | clear() | 
| bool | contains( | 
|  Esri | first() const | 
| int | index | 
| void | insert(int index, Esri | 
| bool | is | 
|  Esri | last() const | 
| void | move(int from, int to) | 
| void | remove | 
| void | remove | 
Reimplemented Public Functions
|  virtual Esri | at(int index) const override | 
| virtual QVariant | data(const QModel | 
| virtual int | size() const override | 
Signals
| void | error | 
| void | item | 
| void | item | 
Detailed Description
The model returns data for the following roles:
| Role | Type | Description | DisplayFilterRoles | 
|---|---|---|---|
| name | QString | The name of the display filter. | Display | 
| where | QString | SQL expression that defines which features are rendered. | Display | 
| filter | QString | The identifier for the display filter (read only). | Display | 
See also DisplayFilter.
Member Type Documentation
enum DisplayFilterListModel::DisplayFilterRoles      
This enum specifies the custom roles that can be used with DisplayFilterListModel::data.
| Constant | Value | Description | 
|---|---|---|
Esri | Qt | The name of the display filter. | 
Esri | Qt | SQL expression that defines which features are rendered. | 
Esri | Qt | The identifier for the display filter (read only). | 
Member Function Documentation
[signal] void DisplayFilterListModel::errorOccurred (Esri::ArcGISRuntime::Error    error)    
Signal emitted when an error occurs.
- error - Details about the error.
 
[signal] void DisplayFilterListModel::itemAdded (int index)    
Signal emitted when an item is added to the list model.
- index is the index of the added item.
 
This function was introduced in Esri::ArcGISRuntime 100.15.
[signal] void DisplayFilterListModel::itemRemoved (int index)    
Signal emitted when an item is removed from the list model.
- index is the index of the removed item.
 
This function was introduced in Esri::ArcGISRuntime 100.15.
[override virtual] DisplayFilterListModel::~DisplayFilterListModel    ()    
Destructor.
void DisplayFilterListModel::append(Esri::ArcGISRuntime::DisplayFilter     *displayFilter )    
Appends the displayFilter to the display filter list model.
[override virtual] Esri::ArcGISRuntime::DisplayFilter     *DisplayFilterListModel::at(int index) const     
Returns the display filter at the specified index.
void DisplayFilterListModel::clear()    
Removes all display filters from the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
bool DisplayFilterListModel::contains(Esri::ArcGISRuntime::DisplayFilter     *displayFilter ) const    
Returns true if the provided displayFilter is in the list model.
[override virtual] QVariant DisplayFilterListModel::data(const QModelIndex  &index, int role = Qt::DisplayRole) const      
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
Returns the data stored under the given role for the display filter referred to by the index.
- index. The index in the model for which to return data.
 - role. The role for which to return data.
 
Esri::ArcGISRuntime::DisplayFilter     *DisplayFilterListModel::first() const     
Returns the first display filter in the list model.
int DisplayFilterListModel::indexOf (Esri::ArcGISRuntime::DisplayFilter     *displayFilter ) const    
Returns the index of the provided displayFilter in the list model.
void DisplayFilterListModel::insert(int index, Esri::ArcGISRuntime::DisplayFilter     *displayFilter )    
Inserts a displayFilter at a specified index in the list model.
bool DisplayFilterListModel::isEmpty () const    
Returns true if this list model is empty.
Esri::ArcGISRuntime::DisplayFilter     *DisplayFilterListModel::last() const     
Returns the last display filter in the list model.
void DisplayFilterListModel::move(int from, int to)    
Moves one display filter from an index in the list model to a different index.
void DisplayFilterListModel::removeAt (int index)    
Removes a display filter at the specified index in the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
void DisplayFilterListModel::removeOne (Esri::ArcGISRuntime::DisplayFilter     *displayFilter )    
Removes the specified displayFilter from the list model.
List models do not take ownership of the objects they contain. Therefore, removing or clearing objects from the list model will not delete those objects. An RAII technique should be used to ensure that memory is properly deallocated.
[override virtual] int DisplayFilterListModel::size() const    
Returns the number of display filters in the model.