aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 0024683d..1e159fd5 100644
--- a/room.cpp
+++ b/room.cpp
@@ -214,7 +214,12 @@ QString Room::topic() const
return d->topic;
}
-QPixmap Room::avatar(int width, int height)
+QImage Room::avatar(int dimension)
+{
+ return avatar(dimension, dimension);
+}
+
+QImage Room::avatar(int width, int height)
{
if (!d->avatar.url().isEmpty())
return d->avatar.get(width, height, [=] { emit avatarChanged(); });