diff options
-rw-r--r-- | user.cpp | 5 | ||||
-rw-r--r-- | user.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -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 @@ -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); |