A list model storing a list of unique values available in a unique value renderer. More...
Member Function Documentation[override virtual noexcept]
UniqueValueListModel::~UniqueValueListModel()
Destructor.
void UniqueValueListModel::append(Esri::ArcGISRuntime::UniqueValue *uniqueValue)Appends the uniqueValue to the unique value list model.
[override virtual]
Esri::ArcGISRuntime::UniqueValue *UniqueValueListModel::at(int index) const
Returns the unique value at the specified index.
void UniqueValueListModel::clear()Removes all unique values 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 UniqueValueListModel::contains(Esri::ArcGISRuntime::UniqueValue *uniqueValue) constReturns true
if the provided uniqueValue is in the list model.
[override virtual]
QVariant UniqueValueListModel::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 unique value referred to by the index.
[signal]
void UniqueValueListModel::errorOccurred(const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
Returns the first unique value in the list model.
int UniqueValueListModel::indexOf(Esri::ArcGISRuntime::UniqueValue *uniqueValue) constReturns the index of the provided uniqueValue in the list model.
void UniqueValueListModel::insert(int index, Esri::ArcGISRuntime::UniqueValue *uniqueValue)Inserts a uniqueValue at a specified index in the list model.
bool UniqueValueListModel::isEmpty() constReturns true
if this list model is empty.
[signal, since Esri::ArcGISRuntime 100.15]
void UniqueValueListModel::itemAdded(int index)
Signal emitted when an item is added to the model.
index is the index of the added item.
This function was introduced in Esri::ArcGISRuntime 100.15.
[signal, since Esri::ArcGISRuntime 100.15]
void UniqueValueListModel::itemRemoved(int index)
Signal emitted when an item is removed from the model.
index is the index of the removed item.
This function was introduced in Esri::ArcGISRuntime 100.15.
Esri::ArcGISRuntime::UniqueValue *UniqueValueListModel::last() constReturns the last unique value in the list model.
void UniqueValueListModel::move(int from, int to)Moves one unique value from an index in the list model to a different index.
void UniqueValueListModel::removeAt(int index)Removes a unique value 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 UniqueValueListModel::removeOne(Esri::ArcGISRuntime::UniqueValue *uniqueValue)Removes the specified uniqueValue 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 UniqueValueListModel::size() const
Returns the number of unique values in the model.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4