97a74d5c1f
In order to access the ModFolderModel from the ModFolderPage, i created a new m_model for the correct type, shadowing the m_model of type ResourceFolderModel. This creates two shared_ptr references to the same object, but since they will have the same lifetime, it doesn't generate a memory leak. Signed-off-by: flow <flowlnlnln@gmail.com>
15 lines
254 B
C++
15 lines
254 B
C++
#pragma once
|
|
|
|
#include "ResourceFolderModel.h"
|
|
|
|
#include "ResourcePack.h"
|
|
|
|
class ResourcePackFolderModel : public ResourceFolderModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ResourcePackFolderModel(const QString &dir);
|
|
|
|
RESOURCE_HELPERS(ResourcePack)
|
|
};
|