[override virtual noexcept]
LayerListModel::~LayerListModel()
Destructor.
void LayerListModel::append(Esri::ArcGISRuntime::Layer *layer)Appends a layer to the layer list model.
[override virtual]
Esri::ArcGISRuntime::Layer *LayerListModel::at(int index) const
Returns the Layer at the specified index.
void LayerListModel::clear()Removes all layers 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 LayerListModel::contains(Esri::ArcGISRuntime::Layer *layer) constReturns true
if the list model contains the specified layer.
[override virtual]
QVariant LayerListModel::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 layer referred to by the index.
[signal]
void LayerListModel::errorOccurred(const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
Returns the first layer in the list model.
int LayerListModel::indexOf(Esri::ArcGISRuntime::Layer *layer) constReturns the index of the layer specified.
void LayerListModel::insert(int index, Esri::ArcGISRuntime::Layer *layer)Inserts a layer at a specified index in the list model.
This method will append to the list if the index is greater than the current size of the list model.
bool LayerListModel::isEmpty() constReturns true
if the list model contains no layers.
[signal, since Esri::ArcGISRuntime 100.15]
void LayerListModel::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, since Esri::ArcGISRuntime 100.15]
void LayerListModel::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.
Esri::ArcGISRuntime::Layer *LayerListModel::last() constReturns the last layer in the list model.
void LayerListModel::move(int from, int to)Moves one layer from an index in the list model to a different index.
void LayerListModel::removeAt(int index)Removes a layer at the specified index.
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 LayerListModel::removeOne(Esri::ArcGISRuntime::Layer *layer)Removes the specified layer 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 LayerListModel::size() const
Returns the number of layers contained in the list 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