aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 09:43:11 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-25 14:46:48 +0900
commitcb54a2a5f9e83a5076eb501e60e88846a4aa28df (patch)
tree71854c41cbec18b8e81a471a9be2247b1700e485 /room.cpp
parentd45298d5db97663f300879002a8e0ccdf6b8d523 (diff)
downloadlibquotient-cb54a2a5f9e83a5076eb501e60e88846a4aa28df.tar.gz
libquotient-cb54a2a5f9e83a5076eb501e60e88846a4aa28df.zip
Expose avatar URLs of Room and User as Q_PROPERTY
This is needed for QML integration. Closes #155.
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/room.cpp b/room.cpp
index 71b7b228..1c9063c9 100644
--- a/room.cpp
+++ b/room.cpp
@@ -262,6 +262,11 @@ QString Room::topic() const
return d->topic;
}
+QUrl Room::avatarUrl() const
+{
+ return d->avatar.url();
+}
+
QImage Room::avatar(int dimension)
{
return avatar(dimension, dimension);