diff --git a/src/ImagePackListModel.h b/src/ImagePackListModel.h index 435c3902..f2c718b4 100644 --- a/src/ImagePackListModel.h +++ b/src/ImagePackListModel.h @@ -8,10 +8,14 @@ #include #include -class SingleImagePackModel; -class ImagePackListModel final : public QAbstractListModel +#include "SingleImagePackModel.h" + +class ImagePackListModel : public QAbstractListModel { Q_OBJECT + QML_ELEMENT + QML_UNCREATABLE("") + Q_PROPERTY(bool containsAccountPack READ containsAccountPack CONSTANT) public: enum Roles diff --git a/src/SingleImagePackModel.h b/src/SingleImagePackModel.h index 595f5a78..e1ab98fb 100644 --- a/src/SingleImagePackModel.h +++ b/src/SingleImagePackModel.h @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -15,6 +16,8 @@ class SingleImagePackModel final : public QAbstractListModel { Q_OBJECT + QML_ELEMENT + QML_UNCREATABLE("") Q_PROPERTY(QString roomid READ roomid CONSTANT) Q_PROPERTY(bool fromSpace READ fromSpace CONSTANT)