aboutsummaryrefslogtreecommitdiff
path: root/lib/events/eventcontent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-26 19:31:11 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-05 21:01:30 +0900
commit4ec3dd92d2cb5af4cf4893770e29db51d23e0e67 (patch)
treef61bf9d095a420d953ee6c43e4a8ecdb1a2a5039 /lib/events/eventcontent.h
parent3ecf762f497a4d4b6ea7583689c0b9b284300201 (diff)
downloadlibquotient-4ec3dd92d2cb5af4cf4893770e29db51d23e0e67.tar.gz
libquotient-4ec3dd92d2cb5af4cf4893770e29db51d23e0e67.zip
Make content in events editable
Diffstat (limited to 'lib/events/eventcontent.h')
-rw-r--r--lib/events/eventcontent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 2a48e910..2e61276b 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -167,6 +167,7 @@ namespace QMatrixClient
explicit TypedBase(const QJsonObject& o = {}) : Base(o) { }
virtual QMimeType type() const = 0;
virtual const FileInfo* fileInfo() const { return nullptr; }
+ virtual FileInfo* fileInfo() { return nullptr; }
virtual const Thumbnail* thumbnailInfo() const { return nullptr; }
};
@@ -196,6 +197,7 @@ namespace QMatrixClient
QMimeType type() const override { return InfoT::mimeType; }
const FileInfo* fileInfo() const override { return this; }
+ FileInfo* fileInfo() override { return this; }
protected:
void fillJson(QJsonObject* json) const override