diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-25 09:43:11 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-25 14:46:48 +0900 |
commit | cb54a2a5f9e83a5076eb501e60e88846a4aa28df (patch) | |
tree | 71854c41cbec18b8e81a471a9be2247b1700e485 /room.cpp | |
parent | d45298d5db97663f300879002a8e0ccdf6b8d523 (diff) | |
download | libquotient-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.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |