diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-09-01 13:25:11 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-09-01 13:25:11 +0200 |
commit | e144c5741f36a27b4df44804db48a77446bcd75c (patch) | |
tree | 8d529a9c31058c275376a5abb86f91e497fbf11b /src/SingleImagePackModel.h | |
parent | Unset the transient parent on separate chat windows (diff) | |
download | nheko-e144c5741f36a27b4df44804db48a77446bcd75c.tar.xz |
Implement space stickers & emoji
Diffstat (limited to '')
-rw-r--r-- | src/SingleImagePackModel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SingleImagePackModel.h b/src/SingleImagePackModel.h index b732dcac..de2e4dea 100644 --- a/src/SingleImagePackModel.h +++ b/src/SingleImagePackModel.h @@ -18,6 +18,7 @@ class SingleImagePackModel : public QAbstractListModel Q_OBJECT Q_PROPERTY(QString roomid READ roomid CONSTANT) + Q_PROPERTY(bool fromSpace READ fromSpace CONSTANT) Q_PROPERTY(QString statekey READ statekey WRITE setStatekey NOTIFY statekeyChanged) Q_PROPERTY(QString attribution READ attribution WRITE setAttribution NOTIFY attributionChanged) Q_PROPERTY(QString packname READ packname WRITE setPackname NOTIFY packnameChanged) @@ -47,6 +48,7 @@ public: bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; QString roomid() const { return QString::fromStdString(roomid_); } + bool fromSpace() const { return fromSpace_; } QString statekey() const { return QString::fromStdString(statekey_); } QString packname() const { return QString::fromStdString(pack.pack->display_name); } QString attribution() const { return QString::fromStdString(pack.pack->attribution); } @@ -91,4 +93,6 @@ private: mtx::events::msc2545::ImagePack pack; std::vector<std::string> shortcodes; + + bool fromSpace_ = false; }; |