mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Properly register image pack types
This commit is contained in:
parent
b15d889da0
commit
08d5980d40
2 changed files with 9 additions and 2 deletions
|
@ -8,10 +8,14 @@
|
|||
#include <QQmlEngine>
|
||||
#include <QSharedPointer>
|
||||
|
||||
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
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <QAbstractListModel>
|
||||
#include <QList>
|
||||
#include <QQmlEngine>
|
||||
#include <QUrl>
|
||||
|
||||
#include <mtx/events/mscs/image_packs.hpp>
|
||||
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue