aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user.cpp5
-rw-r--r--user.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/user.cpp b/user.cpp
index f6256a19..7d5024e5 100644
--- a/user.cpp
+++ b/user.cpp
@@ -81,6 +81,11 @@ QString User::displayname() const
QPixmap User::avatar(int width, int height)
{
+ return croppedAvatar(width, height); // FIXME: Return an uncropped avatar;
+}
+
+QPixmap User::croppedAvatar(int width, int height)
+{
QSize size(width, height);
if( !d->avatarValid
diff --git a/user.h b/user.h
index 33a89e0b..c408eb67 100644
--- a/user.h
+++ b/user.h
@@ -49,6 +49,7 @@ namespace QMatrixClient
Q_INVOKABLE QString displayname() const;
QPixmap avatar(int requestedWidth, int requestedHeight);
+ QPixmap croppedAvatar(int requestedWidth, int requestedHeight);
void processEvent(Event* event);