aboutsummaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'user.cpp')
-rw-r--r--user.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/user.cpp b/user.cpp
index faad6231..6d2a2030 100644
--- a/user.cpp
+++ b/user.cpp
@@ -95,7 +95,12 @@ Avatar& User::avatarObject()
return d->avatar;
}
-QPixmap User::avatar(int width, int height)
+QImage User::avatar(int dimension)
+{
+ return avatar(dimension, dimension);
+}
+
+QImage User::avatar(int width, int height)
{
return d->avatar.get(width, height, [=] { emit avatarChanged(this); });
}