Provides a model by which the resource spawner qml plugin pulls and updates from.
More...
#include <ResourceSpawner.hh>
|
void | sizeChanged () |
| Signal used with the totalCount property.
|
|
|
| ResourceModel () |
| Constructor.
|
|
| ~ResourceModel () override=default |
| Destructor.
|
|
void | AddResource (const Resource &_resource) |
| Add a resource to the grid view. param[in] _resource The local resource to be added.
|
|
void | AddResources (std::vector< Resource > &_resources) |
| Add a vector of resources to the grid view. param[in] _resource The vector of local resources to be added.
|
|
void | Clear () |
| Clear the current resource model.
|
|
QHash< int, QByteArray > | roleNames () const override |
|
void | UpdateResourceModel (int index, Resource &_resource) |
| Updates the resource at the provided index with the values in the passed in resource.
|
|
|
int | totalCount |
| Property used to display the total number of resources associated with an owner.
|
|
Provides a model by which the resource spawner qml plugin pulls and updates from.
◆ ResourceModel()
◆ ~ResourceModel()
◆ AddResource()
void AddResource |
( |
const Resource & |
_resource | ) |
|
Add a resource to the grid view. param[in] _resource The local resource to be added.
◆ AddResources()
Add a vector of resources to the grid view. param[in] _resource The vector of local resources to be added.
◆ Clear()
Clear the current resource model.
◆ roleNames()
QHash< int, QByteArray > roleNames |
( |
| ) |
const |
|
override |
◆ sizeChanged
Signal used with the totalCount property.
◆ UpdateResourceModel()
void UpdateResourceModel |
( |
int |
index, |
|
|
Resource & |
_resource |
|
) |
| |
Updates the resource at the provided index with the values in the passed in resource.
- Parameters
-
[in] | index | The index of the resources within the resource model |
[in] | _resource | The resource values with which to update the existing resource |
◆ gridIndex
◆ totalCount
Property used to display the total number of resources associated with an owner.
The documentation for this class was generated from the following file: