refactor(RD): move BaseInstance dep. to subclasses of ResourceModel
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
b3330cb0da
commit
e62e1d9701
4 changed files with 7 additions and 6 deletions
|
@ -21,7 +21,7 @@ namespace ResourceDownload {
|
|||
|
||||
QHash<ResourceModel*, bool> ResourceModel::s_running_models;
|
||||
|
||||
ResourceModel::ResourceModel(BaseInstance const& base_inst, ResourceAPI* api) : QAbstractListModel(), m_base_instance(base_inst), m_api(api)
|
||||
ResourceModel::ResourceModel(ResourceAPI* api) : QAbstractListModel(), m_api(api)
|
||||
{
|
||||
s_running_models.insert(this, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue