fix: don't give shared pointer to obj. external to the model
It causes some weird problems and adds refcounting overhead. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
97a74d5c1f
commit
92aa24ae34
10 changed files with 58 additions and 54 deletions
|
@ -47,6 +47,7 @@ class Mod : public Resource
|
|||
Q_OBJECT
|
||||
public:
|
||||
using Ptr = shared_qobject_ptr<Mod>;
|
||||
using WeakPtr = QPointer<Mod>;
|
||||
|
||||
Mod() = default;
|
||||
Mod(const QFileInfo &file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue